XLE  v0.02.0
Public Member Functions | Public Attributes | List of all members
Utility::Data Class Reference

Public Member Functions

 Data (const char *value="__none__")
 
int Index () const
 
int Size () const
 
DataChildAt (int i) const
 
DataChildWithValue (const char *value) const
 
DataNextWithValue (const char *value) const
 
DataPrevWithValue (const char *value) const
 
const char * ValueAt (int i, const char *def=0) const
 
void Path (char *dst, int count)
 
DataFind (const char *path) const
 
DataAttribute (const char *path) const
 
bool BoolAttribute (const char *path, bool def=false) const
 
int IntAttribute (const char *path, int def=0) const
 
int64 Int64Attribute (const char *path, int64 def=0) const
 
float FloatAttribute (const char *path, float def=0.0f) const
 
double DoubleAttribute (const char *path, double def=0.0f) const
 
const char * StrAttribute (const char *path, const char *def="") const
 
bool HasBoolAttribute (const char *path, bool *out) const
 
bool HasIntAttribute (const char *path, int *out) const
 
bool HasInt64Attribute (const char *path, int64 *out) const
 
bool HasFloatAttribute (const char *path, float *out) const
 
bool HasDoubleAttribute (const char *path, double *out) const
 
bool HasStrAttribute (const char *path, const char **out) const
 
void GetAttribute (const char *name, bool &value) const
 
void GetAttribute (const char *name, int &value) const
 
void GetAttribute (const char *name, int16 &value) const
 
void GetAttribute (const char *name, uint8 &value) const
 
void GetAttribute (const char *name, uint16 &value) const
 
void GetAttribute (const char *name, uint32 &value) const
 
void GetAttribute (const char *name, long &value) const
 
void GetAttribute (const char *name, float &value) const
 
void GetAttribute (const char *name, double &value) const
 
void SetAttribute (const char *name, Data *value)
 
void SetAttribute (const char *name, bool value)
 
void SetAttribute (const char *name, int value)
 
void SetAttribute (const char *name, uint32 value)
 
void SetAttribute (const char *name, float value)
 
void SetAttribute (const char *name, double value)
 
void SetAttribute (const char *name, const char *value)
 
void SetAttribute (const char *name, int64 value)
 
bool BoolValue () const
 
int IntValue () const
 
int64 Int64Value () const
 
float FloatValue () const
 
double DoubleValue () const
 
const char * StrValue () const
 
void SetValue (bool value)
 
void SetValue (int value)
 
void SetValue (float value)
 
void SetValue (double value)
 
void SetValue (const char *value)
 
bool operator== (const Data &n) const
 
void Clear ()
 
DataClone () const
 
void Add (Data *child)
 
void Remove ()
 
void SetPreComment (const char *comment)
 
void SetPostComment (const char *comment)
 
void SetMeta (Data *meta)
 
bool Load (const char *ptr, int len)
 
bool LoadFromFile (const char *filename, bool *noFile=0)
 
bool Save (const char *filename, bool includeComment=true) const
 
bool SaveToBuffer (char *s, int *len) const
 
bool SavePrettyValue (char *s, int *len) const
 
void SaveToOutputStream (OutputStream &f, bool includeComment=true) const
 

Public Attributes

char * value
 
Datachild
 
Datanext
 
Dataprev
 
Dataparent
 
char * preComment
 
char * postComment
 
Datameta
 
int lineNum
 

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