#include <mtextstream.h>
Inheritance diagram for TextOStream:
Public Methods | |
TextOStream (String &buffer, int mode=IO_Writable) | |
TextOStream (FILE *strm=stdout) | |
TextOStream (TextOStream &o) | |
virtual TextOStream & | printf (const char *format,...) |
virtual TextOStream & | operator<< (const char *str) |
virtual TextOStream & | operator<< (const String &str) |
virtual TextOStream & | operator<< (const char) |
virtual TextOStream & | operator<< (const int) |
virtual TextOStream & | operator<< (const long) |
virtual TextOStream & | operator<< (const float) |
virtual TextOStream & | operator<< (const double) |
virtual uint | writeRawBytes (const char *p, uint n) |
Definition at line 91 of file mtextstream.h.
|
Opens a stream attached to the given string buffer. Example: String myBuffer; OStream(myBuffer) << "Put some text there " << 123 << 42.42 << '\n'; OStream(myBuffer, IO_Append) << " Some appended text";
Definition at line 119 of file mtextstream.cc. |
|
Construction from a FILE output stream. Example: FILE* myfile = fopen ("myfile.ext", "w"); OStream mystream (out); // Attach to opened stream. OStream outstd (stdout); // Attach to standard output stream.
Definition at line 96 of file mtextstream.cc. |
|
Copy constructor.
Definition at line 104 of file mtextstream.cc. |
|
Print zero-terminated character string.
Implements OStream. Definition at line 155 of file mtextstream.cc. References IODevice::writeBlock(). |
|
Print formatted string.
Reimplemented from OStream. Definition at line 126 of file mtextstream.cc. References IODevice::flush(), and IODevice::writeBlock(). |