CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_stream.h>
Public Member Functions | |
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) |
Protected Attributes | |
void * | iFD |
An output stream to write to a file that is already open for writing. The destructor does not close the file.
|
inline |
Creates a file output stream from a file descriptor (the value returned by fopen). The file must already have been opened for writing.
int64_t CartoTypeCore::OpenFileOutputStream::Position | ( | ) |
Returns the current position in the file as a byte offset relative to the start of the file.
|
overridevirtual |
Writes aBytes bytes from aBuffer to the stream.
Implements CartoTypeCore::OutputStream.
|
protected |
The file pointer. The actual type is FILE*.