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

#include <cartotype_stream.h>

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

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

Detailed Description

An output stream to write to a file that is already open for writing. The destructor does not close the file.

Constructor & Destructor Documentation

◆ COpenFileOutputStream()

CartoType::COpenFileOutputStream::COpenFileOutputStream ( void *  aFile)

Creates a file output stream from a file descriptor (the value returned by fopen). The file must already have been opened for writing.

Member Function Documentation

◆ Position()

int64_t CartoType::COpenFileOutputStream::Position ( )

Returns the current position in the file as a byte offset relative to the start of the file.

◆ Write()

void CartoType::COpenFileOutputStream::Write ( const uint8_t *  aBuffer,
size_t  aBytes 

Writes aBytes bytes from aBuffer to the stream.

Implements CartoType::MOutputStream.

Member Data Documentation

◆ iFD

void* CartoType::COpenFileOutputStream::iFD

The file pointer. The actual type is FILE*.

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