xoreos
0.0.5
|
#include <xml.h>
Public Types | |
typedef std::map< UString, UString > | Properties |
typedef PtrList< const XMLNode > | Children |
Public Member Functions | |
const UString & | getName () const |
const UString & | getContent () const |
const XMLNode * | getParent () const |
Return the parent node, or 0 if this is the root node. More... | |
const Children & | getChildren () const |
Return a list of children. More... | |
const XMLNode * | findChild (const UString &name) const |
Find a child node by name. More... | |
const Properties & | getProperties () const |
Return all the properties on this node. More... | |
UString | getProperty (const UString &name, const UString &def="") const |
Return a certain property on this node. More... | |
Private Types | |
typedef std::map< UString, const XMLNode *, UString::iless > | ChildMap |
Private Member Functions | |
XMLNode (_xmlNode &node, bool makeLower=false, XMLNode *parent=0) | |
~XMLNode () | |
void | load (_xmlNode &node, bool makeLower) |
Private Attributes | |
UString | _name |
UString | _content |
XMLNode * | _parent |
Children | _children |
ChildMap | _childMap |
Properties | _properties |
Friends | |
class | XMLParser |
template<typename T > | |
void | DeallocatorDefault::destroy (T *) |
|
private |
typedef PtrList<const XMLNode> Common::XMLNode::Children |
typedef std::map<UString, UString> Common::XMLNode::Properties |
|
private |
Find a child node by name.
Definition at line 136 of file xml.cpp.
References _childMap.
Referenced by Engines::DragonAge::Campaign::readManifest(), and Engines::DragonAge2::Campaign::readManifest().
const XMLNode::Children & Common::XMLNode::getChildren | ( | ) | const |
Return a list of children.
Definition at line 132 of file xml.cpp.
References _children.
Referenced by Aurora::TextureAtlasFile::load(), and Graphics::Aurora::ModelNode_DragonAge::readMAOXML().
const UString & Common::XMLNode::getContent | ( | ) | const |
const UString & Common::XMLNode::getName | ( | ) | const |
Definition at line 120 of file xml.cpp.
References _name.
Referenced by Aurora::TextureAtlasFile::load(), Engines::DragonAge::Campaign::readManifest(), Engines::DragonAge2::Campaign::readManifest(), and Graphics::Aurora::ModelNode_DragonAge::readMAOXML().
const XMLNode * Common::XMLNode::getParent | ( | ) | const |
const XMLNode::Properties & Common::XMLNode::getProperties | ( | ) | const |
Return all the properties on this node.
Definition at line 144 of file xml.cpp.
References _properties.
Return a certain property on this node.
Definition at line 148 of file xml.cpp.
References _properties.
Referenced by Engines::DragonAge::Campaign::readManifest(), and Engines::DragonAge2::Campaign::readManifest().
|
private |
Definition at line 156 of file xml.cpp.
References _childMap, _children, _content, _name, _properties, Common::UString::makeLower(), and XMLNode().
Referenced by XMLNode().
|
friend |
|
private |
Definition at line 101 of file xml.h.
Referenced by findChild(), and load().
|
private |
Definition at line 100 of file xml.h.
Referenced by getChildren(), and load().
|
private |
Definition at line 96 of file xml.h.
Referenced by getContent(), and load().
|
private |
|
private |
Definition at line 98 of file xml.h.
Referenced by getParent().
|
private |
Definition at line 103 of file xml.h.
Referenced by getProperties(), getProperty(), and load().