CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | List of all members
CartoType::MOutputStream Class Referenceabstract

#include <cartotype_stream.h>

Inheritance diagram for CartoType::MOutputStream:
CartoType::CMemoryOutputStream CartoType::COpenFileOutputStream CartoType::CFileOutputStream

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)

Detailed Description

The output stream interface.

Constructor & Destructor Documentation

◆ ~MOutputStream()

virtual CartoType::MOutputStream::~MOutputStream ( )

Virtual destructor: strictly unneeded since pointers to MOutputStream are not owned and should not be deleted.

Member Function Documentation

◆ Write()

virtual void CartoType::MOutputStream::Write ( const uint8_t *  aBuffer,
size_t  aBytes 
pure virtual

Writes aBytes bytes from aBuffer to the stream.

Implemented in CartoType::COpenFileOutputStream, and CartoType::CMemoryOutputStream.

◆ WriteString() [1/2]

void CartoType::MOutputStream::WriteString ( const char *  aString)

Writes a null-terminated string to the stream. Does not write the final null.

◆ WriteString() [2/2]

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.

◆ WriteXmlText()

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.

The documentation for this class was generated from the following files: