Polycode::Object Class Reference

Basic dictionary data object. More...

List of all members.

Public Member Functions

 Object ()
 Default constructor.
bool loadFromXML (const String &fileName)
 Loads data from XML file into the object.
bool loadFromXMLString (const String &xmlString)
 Loads data from XML string into the object.
void saveToXML (const String &fileName)
 Saves the object to an XML file.

Public Attributes

ObjectEntry root
 Root object entry.

Detailed Description

Basic dictionary data object.

Objects can store organized data and save and load it from disk. An object contains a hierarchy of ObjectEntry classes which hold the actual data.


Member Function Documentation

bool Object::loadFromXML ( const String fileName  ) 

Loads data from XML file into the object.

Parameters:
fileName Path to the XML file to load.
Returns:
Returns true is succesful, false if otherwise.
bool Object::loadFromXMLString ( const String xmlString  ) 

Loads data from XML string into the object.

Parameters:
xmlString XML data in a string.
Returns:
Returns true is succesful, false if otherwise.
void Object::saveToXML ( const String fileName  ) 

Saves the object to an XML file.

Parameters:
fileName Path to the XML file to save to.
Generated on Sat Aug 11 18:04:11 2012 for Polycode by  doxygen 1.6.3