Polycode
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:
fileNamePath 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:
xmlStringXML 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:
fileNamePath to the XML file to save to.