#include <tobjstrm.h>
Inheritance diagram for opstream::
Public Methods | |
opstream (streambuf *buf) | |
~opstream () | |
streampos | tellp () |
opstream& | seekp (streampos pos) |
opstream& | seekp (streamoff off, ios::seek_dir dir) |
opstream& | flush () |
void | writeByte (uchar ch) |
void | writeBytes (const void *data, size_t sz) |
void | writeWord (ushort us) |
void | writeString (const char *str) |
Protected Methods | |
opstream () | |
void | writePrefix (const TStreamable &) |
void | writeData (TStreamable &) |
void | writeSuffix (const TStreamable &) |
P_id_type | find (const void *adr) |
void | registerObject (const void *adr) |
Friends | |
opstream& | operator<< (opstream &, char) |
opstream& | operator<< (opstream &, signed char) |
opstream& | operator<< (opstream &, unsigned char) |
opstream& | operator<< (opstream &, signed short) |
opstream& | operator<< (opstream &, unsigned short) |
opstream& | operator<< (opstream &, signed int) |
opstream& | operator<< (opstream &, unsigned int) |
opstream& | operator<< (opstream &, signed long) |
opstream& | operator<< (opstream &, unsigned long) |
opstream& | operator<< (opstream &, float) |
opstream& | operator<< (opstream &, double) |
opstream& | operator<< (opstream &, long double) |
opstream& | operator<< (opstream &, TStreamable &) |
opstream& | operator<< (opstream &, TStreamable *) |
The overloaded operators << insert (write) the given argument to the given opstream object. A reference to the stream is returned, allowing you to chain << operations in the usual way. The data type of the argument determines the form of write operation employed. For example, writing a signed char is implemented using writeByte().
Definition at line 750 of file tobjstrm.h.
|
This form creates a buffered opstream with the given buffer and sets the bp data member to `buf'. The state data member is set to 0. |
|
Destroys the opstream object. |
|
This form allocates a default buffer. |
|
Returns the type ID for the object ad address `adr'. |
|
Flushes the stream. |
|
Registers the class of the object ad address `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's current position to the absolute position given by `pos'. |
|
Returns the (absolute) current stream position. |
|
Writes character `ch' to the stream. |
|
Writes `sz' bytes from `data' buffer to the stream. |
|
Writes data to the stream by calling the appropriate class's write member function for the object being written. |
|
Writes the class name prefix to the stream. The << operator uses this function to write a prefix and suffix around the data written with writeData(). The prefix/suffix is used to ensure type-safe stream I/O. |
|
Writes `str' to the stream (together with a leading length byte). |
|
Writes the class name suffix to the stream. The << operator uses this function to write a prefix and suffix around the data written with writeData(). The prefix/suffix is used to ensure type-safe stream I/O. |
|
Writes the word `us' to the stream. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |