Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
XMLParser.h File Reference

Go to the source code of this file.

Classes

struct  Divide::XML::detail::LoadSave
 
class  Divide::XML::IXMLSerializable
 
struct  Divide::XML::SceneNode
 

Namespaces

namespace  Divide
 Handle console commands that start with a forward slash.
 
namespace  Divide::XML
 
namespace  Divide::XML::detail
 

Macros

#define DVD_XML_PARSER_H_
 
#define CONCAT(first, second)   first second
 
#define GET_PARAM(X)   GET_TEMP_PARAM(X, X)
 
#define GET_TEMP_PARAM(X, TEMP)    TEMP = LoadSave.XmlTree.get(LoadSave._rootNodePath + TO_STRING(X), TEMP)
 
#define GET_PARAM_ATTRIB(X, Y)    X.Y = LoadSave.XmlTree.get(CONCAT(CONCAT(LoadSave._rootNodePath + TO_STRING(X), ".<xmlattr>."), TO_STRING(Y)), (X.Y))
 
#define PUT_TEMP_PARAM(X, TEMP)    LoadSave.XmlTree.put(LoadSave._rootNodePath + TO_STRING(X), TEMP)
 
#define PUT_PARAM_ATTRIB(X, Y)    LoadSave.XmlTree.put(CONCAT(CONCAT(LoadSave._rootNodePath + TO_STRING(X), ".<xmlattr>."), TO_STRING(Y)), (X.Y))
 
#define PUT_PARAM(X)   PUT_TEMP_PARAM(X, X)
 

Functions

 Divide::FWD_DECLARE_MANAGED_CLASS (Material)
 
bool Divide::XML::loadFromXML (IXMLSerializable &object, const ResourcePath &filePath, const char *fileName)
 
bool Divide::XML::saveToXML (const IXMLSerializable &object, const ResourcePath &filePath, const char *fileName)
 
void Divide::XML::writeXML (const ResourcePath &path, const boost::property_tree::ptree &tree)
 
void Divide::XML::readXML (const ResourcePath &path, boost::property_tree::ptree &tree)
 
void Divide::XML::loadDefaultKeyBindings (const ResourcePath &file, const Scene *scene)
 Child Functions.
 
void Divide::XML::loadMusicPlaylist (const ResourcePath &scenePath, const Str< 64 > &fileName, Scene *scene, const Configuration &config)
 

Macro Definition Documentation

◆ CONCAT

#define CONCAT (   first,
  second 
)    first second

Definition at line 67 of file XMLParser.h.

◆ DVD_XML_PARSER_H_

#define DVD_XML_PARSER_H_

Definition at line 34 of file XMLParser.h.

◆ GET_PARAM

#define GET_PARAM (   X)    GET_TEMP_PARAM(X, X)

Definition at line 69 of file XMLParser.h.

◆ GET_PARAM_ATTRIB

#define GET_PARAM_ATTRIB (   X,
 
)     X.Y = LoadSave.XmlTree.get(CONCAT(CONCAT(LoadSave._rootNodePath + TO_STRING(X), ".<xmlattr>."), TO_STRING(Y)), (X.Y))

Definition at line 74 of file XMLParser.h.

◆ GET_TEMP_PARAM

#define GET_TEMP_PARAM (   X,
  TEMP 
)     TEMP = LoadSave.XmlTree.get(LoadSave._rootNodePath + TO_STRING(X), TEMP)

Definition at line 71 of file XMLParser.h.

◆ PUT_PARAM

#define PUT_PARAM (   X)    PUT_TEMP_PARAM(X, X)

Definition at line 83 of file XMLParser.h.

◆ PUT_PARAM_ATTRIB

#define PUT_PARAM_ATTRIB (   X,
 
)     LoadSave.XmlTree.put(CONCAT(CONCAT(LoadSave._rootNodePath + TO_STRING(X), ".<xmlattr>."), TO_STRING(Y)), (X.Y))

Definition at line 79 of file XMLParser.h.

◆ PUT_TEMP_PARAM

#define PUT_TEMP_PARAM (   X,
  TEMP 
)     LoadSave.XmlTree.put(LoadSave._rootNodePath + TO_STRING(X), TEMP)

Definition at line 77 of file XMLParser.h.