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

#include <cartotype_stream.h>

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

Public Member Functions

 CFileOutputStream (const std::string &aFileName)
- Public Member Functions inherited from CartoType::COpenFileOutputStream
 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)

Static Public Member Functions

static std::unique_ptr< CFileOutputStreamNew (TResult &aError, const std::string &aFileName)

Additional Inherited Members

- Protected Attributes inherited from CartoType::COpenFileOutputStream
void * iFD

Detailed Description

An output stream to write to a file. The New function opens the file and the destructor closes it.

Constructor & Destructor Documentation

◆ CFileOutputStream()

CartoType::CFileOutputStream::CFileOutputStream ( const std::string &  aFileName)

Creates a CFileOutputStream to write to the file aFileName. Throws an exception if the file cannot be opened.

Member Function Documentation

◆ New()

std::unique_ptr< CFileOutputStream > CartoType::CFileOutputStream::New ( TResult aError,
const std::string &  aFileName 

Creates a CFileOutputStream to write to the file aFileName. Returns the result in aError.

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