CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_stream.h>
Public Member Functions | |
FileOutputStream (const std::string &aFileName) | |
Public Member Functions inherited from CartoTypeCore::OpenFileOutputStream | |
OpenFileOutputStream (void *aFile) | |
void | Write (const uint8_t *aBuffer, size_t aBytes) override |
int64_t | Position () |
OpenFileOutputStream (const OpenFileOutputStream &)=delete | |
OpenFileOutputStream (OpenFileOutputStream &&)=delete | |
void | operator= (const OpenFileOutputStream &)=delete |
void | operator= (OpenFileOutputStream &&)=delete |
Public Member Functions inherited from CartoTypeCore::OutputStream | |
virtual | ~OutputStream () |
virtual void | Write (const uint8_t *aBuffer, size_t aBytes)=0 |
void | WriteString (const char *aString) |
void | WriteString (const std::string &aString) |
void | WriteString (const MString &aString) |
void | WriteXmlText (const MString &aString) |
void | WriteUint8 (uint8_t aValue) |
void | WriteUint16 (uint16_t aValue) |
void | WriteUint16LE (uint16_t aValue) |
void | WriteUint32 (uint32_t aValue) |
void | WriteUint32LE (uint32_t aValue) |
void | WriteUint (uint32_t aValue, int32_t aSize) |
void | WriteUintLE (uint32_t aValue, int32_t aSize) |
void | WriteUint (uint64_t aValue) |
void | WriteInt (int64_t aValue) |
void | WriteFloat (float aValue) |
void | WriteFloatLE (float aValue) |
void | WriteDouble (double aValue) |
void | WriteDoubleLE (double aValue) |
void | WriteUtf8StringWithLength (const MString &aString) |
void | WriteUtf8StringWithLength (const std::string &aString) |
void | WriteNullTerminatedString (const MString &aString) |
Static Public Member Functions | |
static std::unique_ptr< FileOutputStream > | New (Result &aError, const std::string &aFileName) |
Additional Inherited Members | |
Protected Attributes inherited from CartoTypeCore::OpenFileOutputStream | |
void * | iFD |
An output stream to write to a file. The New function opens the file and the destructor closes it.
CartoTypeCore::FileOutputStream::FileOutputStream | ( | const std::string & | aFileName | ) |
Creates a FileOutputStream to write to the file aFileName. Throws an exception if the file cannot be opened.
|
static |
Creates a FileOutputStream to write to the file aFileName. Returns the result in aError.