ScummVM API documentation
Ultima::Shared::XMLTree Class Reference

Public Types

typedef Common::Pair< Common::String, Common::StringKeyType
 
typedef Common::Array< KeyTypeKeyTypeList
 

Public Member Functions

 XMLTree (const Common::Path &fname)
 
 XMLTree (Common::SeekableReadStream *stream)
 
bool readConfigFile (const Common::Path &fname)
 
bool readConfigStream (Common::SeekableReadStream *stream)
 
bool readConfigString (const Common::String &s)
 
void clear ()
 
Common::String dump ()
 
void write ()
 
void setReadonly ()
 
bool isReadonly () const
 
XMLNodegetTree () const
 
const XMLNodegetNode (const Common::String &key) const
 
bool hasNode (const Common::String &key) const
 
bool checkRoot (const Common::String &key) const
 
void value (const Common::String &key, Common::String &ret, const char *defaultvalue="") const
 
void value (const Common::String &key, int &ret, int defaultvalue=0) const
 
void value (const Common::String &key, bool &ret, bool defaultvalue=false) const
 
void set (const Common::String &key, const Common::String &value)
 
void set (const Common::String &key, const char *value)
 
void set (const Common::String &key, int value)
 
void set (const Common::String &key, bool value)
 
Common::Array< Common::StringlistKeys (const Common::String &key, bool longformat=false)
 
void getSubkeys (KeyTypeList &ktl, const Common::String &basekey)
 

The documentation for this class was generated from the following file: