PixelLightAPI
.
|
XML declaration node. More...
#include <XmlDeclaration.h>
Public Member Functions | |
PLCORE_API | XmlDeclaration () |
Default constructor. | |
PLCORE_API | XmlDeclaration (const XmlDeclaration &cSource) |
Copy constructor. | |
PLCORE_API | XmlDeclaration (const String &sVersion, const String &sEncoding, const String &sStandalone) |
Constructor. | |
virtual PLCORE_API | ~XmlDeclaration () |
Destructor. | |
PLCORE_API XmlDeclaration & | operator= (const XmlDeclaration &cSource) |
Copy operator. | |
String | GetVersion () const |
Version - will return an empty string if none was found. | |
String | GetEncoding () const |
Encoding - will return an empty string if none was found. | |
String | GetStandalone () const |
Standalone - will return an empty string if none was found. | |
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 declaration node.
* <?xml version="1.0" standalone="yes"?> *
The parser will happily read or write files without a declaration, however. There are 3 possible attributes to the declaration: version, encoding, and standalone.
PLCORE_API PLCore::XmlDeclaration::XmlDeclaration | ( | ) |
Default constructor.
PLCORE_API PLCore::XmlDeclaration::XmlDeclaration | ( | const XmlDeclaration & | cSource | ) |
Copy constructor.
[in] | cSource | Source to copy from |
PLCORE_API PLCore::XmlDeclaration::XmlDeclaration | ( | const String & | sVersion, |
const String & | sEncoding, | ||
const String & | sStandalone | ||
) |
[in] | sVersion | Version |
[in] | sEncoding | Encoding |
[in] | sStandalone | Standalone |
virtual PLCORE_API PLCore::XmlDeclaration::~XmlDeclaration | ( | ) | [virtual] |
Destructor.
PLCORE_API XmlDeclaration& PLCore::XmlDeclaration::operator= | ( | const XmlDeclaration & | cSource | ) |
Copy operator.
[in] | cSource | Source to copy from |
String PLCore::XmlDeclaration::GetVersion | ( | ) | const [inline] |
String PLCore::XmlDeclaration::GetEncoding | ( | ) | const [inline] |
Encoding - will return an empty string if none was found.
String PLCore::XmlDeclaration::GetStandalone | ( | ) | const [inline] |
Standalone - will return an empty string if none was found.
virtual PLCORE_API bool PLCore::XmlDeclaration::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::XmlDeclaration::ToString | ( | uint32 | nDepth = 0 | ) | const [override, virtual] |
Output as string function.
[in] | nDepth | Current depth |
Implements PLCore::XmlBase.
virtual PLCORE_API const char* PLCore::XmlDeclaration::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::XmlDeclaration::Clone | ( | ) | const [override, virtual] |
Create an exact duplicate of this node and return it.
Implements PLCore::XmlNode.
|