|
edelib
2.0.0
|
XML declaration. More...
#include <edelib/TiXml.h>
Public Member Functions | |
| TiXmlDeclaration () | |
| TiXmlDeclaration (const char *_version, const char *_encoding, const char *_standalone) | |
| TiXmlDeclaration (const TiXmlDeclaration ©) | |
| void | operator= (const TiXmlDeclaration ©) |
| const char * | Version () const |
| const char * | Encoding () const |
| const char * | Standalone () const |
| virtual TiXmlNode * | Clone () const |
| virtual void | Print (FILE *cfile, int depth, edelib::String *str) const |
| virtual void | Print (FILE *cfile, int depth) const |
| virtual const TiXmlDeclaration * | ToDeclaration () const |
| virtual TiXmlDeclaration * | ToDeclaration () |
| virtual bool | Accept (TiXmlVisitor *visitor) const |
XML declaration.
In correct XML the declaration is the first entry in the file.
* <?xml version="1.0" standalone="yes"?> *
TinyXml will happily read or write files without a declaration, however. There are 3 possible attributes to the declaration: version, encoding, and standalone.
Note: In this version of the code, the attributes are handled as special cases, not generic attributes, simply because there can only be at most 3 and they are always the same.
| TiXmlDeclaration | ( | ) | [inline] |
Construct an empty declaration
| TiXmlDeclaration | ( | const char * | _version, |
| const char * | _encoding, | ||
| const char * | _standalone | ||
| ) |
Constructor
| TiXmlDeclaration | ( | const TiXmlDeclaration & | copy | ) |
Constructor
| virtual bool Accept | ( | TiXmlVisitor * | visitor | ) | const [virtual] |
Walk the XML tree visiting this node and all of its children.
Implements TiXmlNode.
Creates a copy of this Declaration and returns it.
Implements TiXmlNode.
| const char* Encoding | ( | ) | const [inline] |
Encoding. Will return an empty string if none was found.
| void operator= | ( | const TiXmlDeclaration & | copy | ) |
Assignement from other TiXmlDeclaration
| virtual void Print | ( | FILE * | cfile, |
| int | depth, | ||
| edelib::String * | str | ||
| ) | const [virtual] |
Print this declaration to a FILE stream.
| virtual void Print | ( | FILE * | cfile, |
| int | depth | ||
| ) | const [inline, virtual] |
| const char* Standalone | ( | ) | const [inline] |
Is this a standalone document?
| virtual const TiXmlDeclaration* ToDeclaration | ( | ) | const [inline, virtual] |
Cast to a more defined type. Will return null not of the requested type.
Reimplemented from TiXmlNode.
| virtual TiXmlDeclaration* ToDeclaration | ( | ) | [inline, virtual] |
Cast to a more defined type. Will return null not of the requested type.
Reimplemented from TiXmlNode.
| const char* Version | ( | ) | const [inline] |
Version. Will return an empty string if none was found.
1.7.6.1