Classes | |
struct | BasicPipe |
The BasicPipe provide functionality much like the UNIX pipe. More... | |
struct | StringReader |
struct | FileReader |
struct | FileWriter |
struct | Utf8StreamReader |
struct | Utf8FileReader |
struct | ReadException |
struct | WriteException |
struct | FileOpenException |
struct | ReaderBase |
Virtual base class for all readers. More... | |
struct | WriterBase |
Virtual base class for all writers. More... | |
struct | BasicRewindReader |
Create a stream reader with the ability to rewind to the beginning. More... | |
struct | Connector |
Stream all avalable data from the reader endpoint into the writer endpoint. More... | |
Typedefs | |
typedef BasicPipe< char > | Pipe |
typedef ReaderBase< char > | Reader |
typedef WriterBase< char > | Writer |
typedef ReaderBase< uchar > | UReader |
typedef WriterBase< uchar > | UWriter |
typedef BasicRewindReader< char > | RewindReader |
Functions | |
Ref< Reader > | makeStringReader (string s) |
Ref< Reader > | makeFileReader (string fileName) throw (FileOpenException) |
Create a reader endpoint that uses a file in the file system as the character source. | |
Ref< Reader > | makeFileReader (int fildes) |
Create a reader endpoint that uses a previously opened file as the character source. | |
Ref< Writer > | makeFileWriter (string fileName) throw (FileOpenException) |
Create a writer endpoint that uses a file in the file system as the character target. | |
Ref< Writer > | makeFileWriter (int fildes) |
Create a writer endpoint that uses a previously opened file as the character target. | |
Ref< UReader > | makeUtf8StreamReader (Ref< Reader > r) |
Ref< UReader > | makeUtf8FileReader (string fileName) throw (FileOpenException) |
Create a reader endpoint that uses a file in the file system as the character source. | |
Ref< UReader > | makeUtf8FileReader (int fildes) |
Create a reader endpoint that uses a previously opened file as the character source. | |
string | readIntoString (Ref< Reader >) throw (ReadException, UnexpectedException) |
Grab every available character from the passed stream and return them as a string. | |
Variables | |
Ref< Reader > | makeStringReader (string) |
Create a reader endpoint that uses a string as the character source. | |
Ref< UReader > | makeUtf8StreamReader (Ref< Reader >) |
Create a reader endpoint that decodes a stream of UTF-8 characters. |
BasicPipe provides the well-known pipe paradigm base on the abstract end-points.
|
Create a reader endpoint that uses a previously opened file as the character source. The passed file descriptor is closed when the last reference to the returned reader is dropped. |
|
Create a reader endpoint that uses a file in the file system as the character source. The file is closed when the last reference to the returned reader is dropped. Definition at line 162 of file stream.C. Referenced by Archon::Utilities::Image::Image(), Archon::Utilities::Image::load(), and Archon::Utilities::Options::processConfigFile(). |
|
Create a writer endpoint that uses a previously opened file as the character target. The passed file descriptor is closed when the last reference to the returned writer is dropped. |
|
Create a writer endpoint that uses a file in the file system as the character target. The file is closed when the last reference to the returned writer is dropped. Definition at line 178 of file stream.C. Referenced by Archon::Utilities::Image::save(), and Archon::Utilities::Options::saveConfigFile(). |
|
Create a reader endpoint that uses a previously opened file as the character source. This reader assumes that the source file contains UTF-8 encoded characters. It returns the decoded characters. The passed file descriptor is closed when the last reference to the returned reader is dropped. |
|
Create a reader endpoint that uses a file in the file system as the character source. This reader assumes that the source file contains UTF-8 encoded characters. It returns the decoded characters. The file is closed when the last reference to the returned reader is dropped. |