PixelLightAPI
.
|
XML text node - contained in an XML element. More...
#include <XmlText.h>
Public Member Functions | |
XmlText () | |
Default constructor. | |
PLCORE_API | XmlText (const String &sValue) |
Constructor. | |
PLCORE_API | XmlText (const XmlText &cSource) |
Copy constructor. | |
virtual PLCORE_API | ~XmlText () |
Destructor. | |
PLCORE_API XmlText & | operator= (const XmlText &cSource) |
Copy operator. | |
bool | IsCDATA () const |
Queries whether this represents text using a CDATA section. | |
void | SetCDATA (bool bCDATA) |
Turns on or off a CDATA representation of text. | |
virtual PLCORE_API bool | Save (File &cFile, uint32 nDepth=0) override |
Save function. | |
virtual PLCORE_API String | ToString (uint32 nDepth=0) const override |
Output as string function. | |
virtual PLCORE_API const char * | Parse (const char *pszData, XmlParsingData *pData=nullptr, EEncoding nEncoding=EncodingUnknown) override |
Parse the given null terminated block of XML data. | |
virtual PLCORE_API XmlNode * | Clone () const override |
Create an exact duplicate of this node and return it. |
XML text node - contained in an XML element.
Default constructor.
PLCORE_API PLCore::XmlText::XmlText | ( | const String & | sValue | ) |
[in] | sValue | Value of this text node |
PLCORE_API PLCore::XmlText::XmlText | ( | const XmlText & | cSource | ) |
Copy constructor.
[in] | cSource | Source to copy from |
virtual PLCORE_API PLCore::XmlText::~XmlText | ( | ) | [virtual] |
Destructor.
Copy operator.
[in] | cSource | Source to copy from |
bool PLCore::XmlText::IsCDATA | ( | ) | const [inline] |
Queries whether this represents text using a CDATA section.
void PLCore::XmlText::SetCDATA | ( | bool | bCDATA | ) | [inline] |
Turns on or off a CDATA representation of text.
[in] | bCDATA | 'true' if this should be input and output as a CDATA style text element, else 'false' |
virtual PLCORE_API bool PLCore::XmlText::Save | ( | File & | cFile, |
uint32 | nDepth = 0 |
||
) | [override, virtual] |
Save function.
[out] | cFile | File to write in, must be opened and writable |
[in] | nDepth | Current depth |
Implements PLCore::XmlBase.
virtual PLCORE_API String PLCore::XmlText::ToString | ( | uint32 | nDepth = 0 | ) | const [override, virtual] |
Output as string function.
[in] | nDepth | Current depth |
Implements PLCore::XmlBase.
virtual PLCORE_API const char* PLCore::XmlText::Parse | ( | const char * | pszData, |
XmlParsingData * | pData = nullptr , |
||
EEncoding | nEncoding = EncodingUnknown |
||
) | [override, virtual] |
Parse the given null terminated block of XML data.
[in] | pszData | Parsing data, if a null pointer, an error will be returned |
[in] | pData | Parsing data, can be a null pointer |
[in] | nEncoding | Encoding |
Implements PLCore::XmlBase.
virtual PLCORE_API XmlNode* PLCore::XmlText::Clone | ( | ) | const [override, virtual] |
Create an exact duplicate of this node and return it.
Implements PLCore::XmlNode.
|