CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_style_sheet_data.h>
Public Member Functions | |
StyleSheetData (const StyleSheetData &aOther)=default | |
StyleSheetData (StyleSheetData &&aOther)=default | |
StyleSheetData & | operator= (const StyleSheetData &aOther)=default |
StyleSheetData & | operator= (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 |
Style sheet data stored in XML format as text or in a file.
|
default |
Creates a StyleSheetData object by copying another one.
|
default |
Creates a StyleSheetData object by moving data from another one.
|
explicit |
Creates a StyleSheetData object representing data from a named file.
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.
|
inline |
Returns the filename associated with this data, or the empty string if there is none.
|
inline |
Returns true if the style sheet data is empty, which means there is no text and no filename.
|
default |
The assignment operator.
|
default |
The move assignment operator.
void CartoTypeCore::StyleSheetData::Reload | ( | ) |
Reloads the data in a StyleSheetData object from the file if any.
|
inline |
Creates a memory input stream representing the style sheet data.
|
inline |
Returns the text of this style sheet data.