Class that holds CharData from XML files. More...
Public Member Functions | |
virtual XmlCharData * | clone () |
const bool | isBlank () const |
virtual const bool | isXmlCharData () const |
Method to check if XmlItem is of type XmlCharData. | |
virtual const bool | isXmlElement () const |
Method to check if XmlItem is of type XmlElement. | |
virtual | operator std::string () const =0 |
string cast operator | |
virtual | operator string () const |
Method to convert value to string. | |
void | removeEndBlanks () |
XmlCharData (const XmlCharData &c) | |
XmlCharData (string s) | |
XmlCharData (const char *c) | |
XmlCharData () |
Class that holds CharData from XML files.
Inherits from string.
Definition at line 67 of file XmlCharData.hpp.
XmlCharData::XmlCharData | ( | ) |
Constructor Creates an empty XmlCharData instance.
Definition at line 42 of file XmlCharData.cpp.
XmlCharData::XmlCharData | ( | const char * | c | ) |
Constructor Creates an XmlCharData instance from a C-like string.
c | C-like string |
Definition at line 49 of file XmlCharData.cpp.
XmlCharData::XmlCharData | ( | string | s | ) |
Constructor Creates an XmlCharData instance from a string.
s | string |
Definition at line 64 of file XmlCharData.cpp.
XmlCharData::XmlCharData | ( | const XmlCharData & | c | ) |
Copy constructor.
Definition at line 71 of file XmlCharData.cpp.
const bool XmlCharData::isBlank | ( | ) | const |
Checks if instance is filled only with blank characters.
Definition at line 78 of file XmlCharData.cpp.
const bool XmlCharData::isXmlCharData | ( | ) | const [virtual] |
Method to check if XmlItem is of type XmlCharData.
Reimplemented from mermaid::support::xml::XmlItem.
Definition at line 111 of file XmlCharData.cpp.
const bool XmlItem::isXmlElement | ( | ) | const [virtual, inherited] |
Method to check if XmlItem is of type XmlElement.
Reimplemented in mermaid::support::xml::XmlElement.
Definition at line 43 of file XmlItem.cpp.
virtual mermaid::support::syntacticsugar::Stringable::operator std::string | ( | ) | const [pure virtual, inherited] |
string cast operator
Implemented in mermaid::support::data::DataBox, mermaid::support::data::DataBoxArray, mermaid::support::data::DataValue, mermaid::support::data::Double, mermaid::support::data::DoubleArray, mermaid::support::data::Integer, mermaid::support::data::IntegerArray, mermaid::support::data::String, and mermaid::support::data::StringArray.
XmlCharData::operator string | ( | ) | const [virtual] |
Method to convert value to string.
Implements mermaid::support::xml::XmlItem.
Definition at line 104 of file XmlCharData.cpp.
void XmlCharData::removeEndBlanks | ( | ) |
Removes blank characters from the beginning and end.
Definition at line 92 of file XmlCharData.cpp.