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

#include <cartotype_style_sheet_data.h>

Public Member Functions

 CStyleSheetData (const CStyleSheetData &aOther)=default
 CStyleSheetData (CStyleSheetData &&aOther)=default
CStyleSheetDataoperator= (const CStyleSheetData &aOther)=default
CStyleSheetDataoperator= (CStyleSheetData &&aOther)=default
 CStyleSheetData (const char *aFileName)
 CStyleSheetData (const uint8_t *aData, size_t aLength)
void Reload ()
TMemoryInputStream Stream () const
const std::string & FileName () const
const std::string & Text () const

Detailed Description

Style sheet data stored in XML format as text or in a file.

Constructor & Destructor Documentation

◆ CStyleSheetData() [1/4]

CartoType::CStyleSheetData::CStyleSheetData ( const CStyleSheetData aOther)

Creates a CStyleSheetData object by copying another one.

◆ CStyleSheetData() [2/4]

CartoType::CStyleSheetData::CStyleSheetData ( CStyleSheetData &&  aOther)

Creates a CStyleSheetData object by moving data from another one.

◆ CStyleSheetData() [3/4]

CartoType::CStyleSheetData::CStyleSheetData ( const char *  aFileName)

Creates a CStyleSheetData object representing data from a named file.

◆ CStyleSheetData() [4/4]

CartoType::CStyleSheetData::CStyleSheetData ( const uint8_t *  aData,
size_t  aLength 

Creates a CStyleSheetData object representing data stored in memory. Copies the data. Throws KErrorInvalidArgument if aData is null or aLength is zero.

Member Function Documentation

◆ FileName()

const std::string & CartoType::CStyleSheetData::FileName ( ) const

Returns the filename associated with this data, or the empty string if there is none.

◆ operator=() [1/2]

CStyleSheetData & CartoType::CStyleSheetData::operator= ( const CStyleSheetData aOther)

The assignment operator.

◆ operator=() [2/2]

CStyleSheetData & CartoType::CStyleSheetData::operator= ( CStyleSheetData &&  aOther)

The move assignment operator.

◆ Reload()

void CartoType::CStyleSheetData::Reload ( )

Reloads the data in a CStyleSheetData object from the file if any.

◆ Stream()

TMemoryInputStream CartoType::CStyleSheetData::Stream ( ) const

Creates a memory input stream representing the style sheet data.

◆ Text()

const std::string & CartoType::CStyleSheetData::Text ( ) const

Returns the text of this style sheet data.

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