19#include <OgreAxisAlignedBox.h>
20#include <OgreColourValue.h>
21#include <OgreSerializer.h>
28#define assertElement(node)((void)0)
30#define assertElement(node)\
32 if(node.Type() != TiXmlNode::TINYXML_ELEMENT)\
34 OGRE_EXCEPT(Ogre::Exception::ERR_INVALIDPARAMS\
35 ,"node has wrong type, needs to be TINYXML_ELEMENT"\
36 ,"XMLSerializer::assertElement");\
66 virtual void Parse(Ogre::DataStreamPtr &stream, TiXmlDocument &dest);
89 TiXmlNode &node,
const String &attribute,
bool &dest,
const bool &def =
false
104 TiXmlNode &node,
const String &attribute,
int &dest,
const int &def = 0
134 TiXmlNode &node,
const String &attribute, Ogre::Real &dest,
135 const Ogre::Real &def = 0
150 TiXmlNode &node,
const String &attribute, Ogre::Vector2 &dest,
151 const Ogre::Vector2 &def = Ogre::Vector2::ZERO
166 TiXmlNode &node,
const String &attribute, Ogre::Vector3 &dest,
167 const Ogre::Vector3 &def = Ogre::Vector3::ZERO
182 TiXmlNode &node,
const String &attribute, Ogre::Vector4 &dest,
183 const Ogre::Vector4 &def = Ogre::Vector4::ZERO
198 TiXmlNode &node,
const String &attribute, Ogre::Quaternion &dest,
199 const Ogre::Quaternion &def = Ogre::Quaternion::IDENTITY
Handles the serialization of XML files.
Definition: VGearsXMLSerializer.h:44
virtual const String * ReadAttribute(TiXmlNode &node, const String &attribute)
Reads an XMl node attribute as a string.
Definition: VGearsXMLSerializer.cpp:30
virtual TiXmlNode * FindChildNode(TiXmlNode &node, const String &tag)
Finds a child node of a XML node by name.
Definition: VGearsXMLSerializer.cpp:137
XMLSerializer()
Constructor.
Definition: VGearsXMLSerializer.cpp:22
virtual ~XMLSerializer()
Destructor.
Definition: VGearsXMLSerializer.cpp:24
virtual void Parse(Ogre::DataStreamPtr &stream, TiXmlDocument &dest)
Reads and parses the XML file.
Definition: VGearsXMLSerializer.cpp:26
Definition: FF7NameLookup.h:24
Ogre::String String
Definition: TypeDefine.h:37