#include <tobjstrm.h>
Inheritance diagram for ipstream::
Public Methods | |
ipstream (streambuf *buf) | |
~ipstream () | |
streampos | tellg () |
ipstream& | seekg (streampos pos) |
ipstream& | seekg (streamoff off, ios::seek_dir dir) |
uchar | readByte () |
void | readBytes (void *data, size_t sz) |
ushort | readWord () |
char* | readString () |
char* | readString (char *buf, unsigned maxLen) |
Protected Methods | |
ipstream () | |
const TStreamableClass* | readPrefix () |
void* | readData (const TStreamableClass *c, TStreamable *mem) |
void | readSuffix () |
const void* | find (P_id_type id) |
void | registerObject (const void *adr) |
Friends | |
ipstream& | operator>> (ipstream &, char &) |
ipstream& | operator>> (ipstream &, signed char &) |
ipstream& | operator>> (ipstream &, unsigned char &) |
ipstream& | operator>> (ipstream &, signed short &) |
ipstream& | operator>> (ipstream &, unsigned short &) |
ipstream& | operator>> (ipstream &, signed int &) |
ipstream& | operator>> (ipstream &, unsigned int &) |
ipstream& | operator>> (ipstream &, signed long &) |
ipstream& | operator>> (ipstream &, unsigned long &) |
ipstream& | operator>> (ipstream &, float &) |
ipstream& | operator>> (ipstream &, double &) |
ipstream& | operator>> (ipstream &, long double &) |
ipstream& | operator>> (ipstream &, TStreamable &) |
ipstream& | operator>> (ipstream &, void *&) |
The overloaded operators >> extract (read) from the given ipstream object to the given argument. A reference to the stream is returned, allowing you to chain >> operations in the usual way. The data type of the argument determines how the read is performed. For example, reading a signed char is implemented using readByte().
Definition at line 573 of file tobjstrm.h.
|
This form creates a buffered ipstream with the given buffer and sets the bp data member to `buf'. The state data member is set to 0. |
|
Destroys the ipstream object. |
|
This form does nothing. |
|
Returns a pointer to the object corresponding to `id'. |
|
Returns the character at the current stream position. |
|
Reads `sz' bytes from current stream position, and writes them to the address given in `data'. |
|
Invokes the appropriate read function to read from the stream to the object `mem'. If `mem' is 0, the appropriate build function is called first. |
|
Returns the TStreamableClass object corresponding to the class name stored at the current position. |
|
Returns a string read from the current stream position. |
|
Returns a string read from the current stream position. |
|
Reads and checks the final byte of an object's name field. |
|
Returns the word at the current stream position. |
|
Registers the class of the object pointed by `adr'. |
|
This form moves to a position relative to the current position by an offset `off' (+ or -) starting at `dir'. Parameter `dir' can be set to:
beg (start of stream) cur (current stream position) end (end of stream) |
|
This form moves the stream position to the absolute position given by `pos'. |
|
Returns the (absolute) current stream position. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |