Ipelib
|
#include <ipebase.h>
Inherited by ipe::A85Stream, ipe::Base64Stream, ipe::DeflateStream, and ipe::TellStream.
Public Member Functions | |
virtual | ~Stream () |
virtual void | putChar (char ch)=0 |
virtual void | close () |
virtual void | putString (String s) |
virtual void | putCString (const char *s) |
virtual void | putRaw (const char *data, int size) |
Stream & | operator<< (char ch) |
Stream & | operator<< (const String &s) |
Stream & | operator<< (const char *s) |
Stream & | operator<< (int i) |
Stream & | operator<< (double d) |
void | putHexByte (char b) |
void | putXmlString (String s) |
Abstract base class for output streams.
|
virtual |
Virtual destructor.
|
pure virtual |
Output character.
Implemented in ipe::A85Stream, ipe::Base64Stream, ipe::DeflateStream, ipe::FileStream, and ipe::StringStream.
References close(), putCString(), putRaw(), putString(), and ipe::size().
Referenced by operator<<(), operator<<(), putCString(), putRaw(), and putString().
|
virtual |
Close the stream. No more writing allowed!
Reimplemented in ipe::A85Stream, ipe::Base64Stream, and ipe::DeflateStream.
Referenced by putChar().
|
virtual |
Output string.
Default implementation uses PutChar.
Reimplemented in ipe::FileStream, and ipe::StringStream.
References putChar(), and ipe::String::size().
Referenced by operator<<(), and putChar().
|
virtual |
Output C string.
Default implementation uses PutChar.
Reimplemented in ipe::FileStream, and ipe::StringStream.
References putChar().
Referenced by operator<<(), operator<<(), and putChar().
|
virtual |
Output raw character data.
Default implementation uses PutChar.
Reimplemented in ipe::FileStream, and ipe::StringStream.
References putChar(), and ipe::size().
Referenced by putChar().
Output string.
References putString().
|
inline |
Output C string.
References putCString().
Stream & Stream::operator<< | ( | int | i | ) |
Output integer.
Stream & Stream::operator<< | ( | double | d | ) |
Output double.
References putChar(), and putCString().
void Stream::putHexByte | ( | char | b | ) |
Output byte in hexadecimal.
void Stream::putXmlString | ( | String | s | ) |
Save a string with XML escaping of &, >, <, ", '.
References ipe::String::size().
Referenced by ipe::Document::saveAsXml(), ipe::Group::saveAsXml(), ipe::Page::saveAsXml(), ipe::StyleSheet::saveAsXml(), and ipe::Text::saveAsXml().