CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | List of all members
CartoTypeCore::StyleSheetData Class Reference

#include <cartotype_style_sheet_data.h>

Public Member Functions

 StyleSheetData (const StyleSheetData &aOther)=default
 
 StyleSheetData (StyleSheetData &&aOther)=default
 
StyleSheetDataoperator= (const StyleSheetData &aOther)=default
 
StyleSheetDataoperator= (StyleSheetData &&aOther)=default
 
 StyleSheetData (const char *aFileName)
 
 StyleSheetData (const char *aData, size_t aLength)
 
void Reload ()
 
MemoryInputStream Stream () const
 
const std::string & FileName () const
 
const std::string & Text () const
 
bool IsEmpty () const
 

Detailed Description

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

Constructor & Destructor Documentation

◆ StyleSheetData() [1/4]

CartoTypeCore::StyleSheetData::StyleSheetData ( const StyleSheetData aOther)
default

Creates a StyleSheetData object by copying another one.

◆ StyleSheetData() [2/4]

CartoTypeCore::StyleSheetData::StyleSheetData ( StyleSheetData &&  aOther)
default

Creates a StyleSheetData object by moving data from another one.

◆ StyleSheetData() [3/4]

CartoTypeCore::StyleSheetData::StyleSheetData ( const char *  aFileName)
explicit

Creates a StyleSheetData object representing data from a named file.

◆ StyleSheetData() [4/4]

CartoTypeCore::StyleSheetData::StyleSheetData ( const char *  aData,
size_t  aLength 
)

Creates a StyleSheetData 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 & CartoTypeCore::StyleSheetData::FileName ( ) const
inline

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

◆ IsEmpty()

bool CartoTypeCore::StyleSheetData::IsEmpty ( ) const
inline

Returns true if the style sheet data is empty, which means there is no text and no filename.

◆ operator=() [1/2]

StyleSheetData & CartoTypeCore::StyleSheetData::operator= ( const StyleSheetData aOther)
default

The assignment operator.

◆ operator=() [2/2]

StyleSheetData & CartoTypeCore::StyleSheetData::operator= ( StyleSheetData &&  aOther)
default

The move assignment operator.

◆ Reload()

void CartoTypeCore::StyleSheetData::Reload ( )

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

◆ Stream()

MemoryInputStream CartoTypeCore::StyleSheetData::Stream ( ) const
inline

Creates a memory input stream representing the style sheet data.

◆ Text()

const std::string & CartoTypeCore::StyleSheetData::Text ( ) const
inline

Returns the text of this style sheet data.


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