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 | |
COpenFileOutputStream (void *aFile) | |
void | Write (const uint8_t *aBuffer, size_t aBytes) override |
int64_t | Position () |
COpenFileOutputStream (const COpenFileOutputStream &)=delete | |
COpenFileOutputStream (COpenFileOutputStream &&)=delete | |
void | operator= (const COpenFileOutputStream &)=delete |
void | operator= (COpenFileOutputStream &&)=delete |
Public Member Functions inherited from CartoType::MOutputStream | |
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) |
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 CartoType::COpenFileOutputStream::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 CartoType::MOutputStream.
|
protected |
The file pointer. The actual type is FILE*.