CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_stream.h>
Public Member Functions | |
virtual | ~MOutputStream () |
virtual void | Write (const uint8_t *aBuffer, size_t aBytes)=0 |
void | WriteString (const char *aString) |
void | WriteString (const MString &aString) |
void | WriteXmlText (const MString &aString) |
The output stream interface.
|
inlinevirtual |
Virtual destructor: strictly unneeded since pointers to MOutputStream are not owned and should not be deleted.
|
pure virtual |
Writes aBytes bytes from aBuffer to the stream.
Implemented in CartoType::COpenFileOutputStream, and CartoType::CMemoryOutputStream.
|
inline |
Writes a null-terminated string to the stream. Does not write the final null.
void CartoType::MOutputStream::WriteString | ( | const MString & | aString | ) |
Writes a string to the stream, converting aString from UTF-16 to UTF-8 then writing the resulting bytes.
void CartoType::MOutputStream::WriteXmlText | ( | const MString & | aString | ) |
Writes a string, converting single and double quotes, less than and greater than, and ampersand, into XML entity references.