Important Update:
- DataTreeCore: - Rename all Get/SetChild...() methods to Get/SetMem...() - Update all other objects with new methods
This commit is contained in:
@@ -66,45 +66,45 @@ public:
|
||||
const int GetLen( const char * Path );
|
||||
|
||||
CDataMember * GetMember( const char * Path, bool Create = false );
|
||||
CDataMember * GetFirstChild( const char * Path );
|
||||
CDataMember * GetElement( const char * Path, const int Index );
|
||||
CDataMember * GetMemFirstChild( const char * Path );
|
||||
CDataMember * GetMemElement( const char * Path, const int Index );
|
||||
|
||||
inline CDataMember * GetFirstChild() { return FirstChild; };
|
||||
inline CDataMember * GetElement( const int Index ) { return GetElement( NULL, Index ); };
|
||||
inline CDataMember * GetElement( const int Index ) { return GetMemElement( NULL, Index ); };
|
||||
|
||||
inline CDataMember * GetParent() { return Parent; };
|
||||
inline CDataMember * GetPrevPeer() { return PrevPeer; };
|
||||
inline CDataMember * GetNextPeer() { return NextPeer; };
|
||||
|
||||
const char * GetChildStr( const char * Path, const char * Default = NULL, bool Create = false );
|
||||
const char * GetChildStr( const char * Path, int &Len, const char * Default = NULL, bool Create = false );
|
||||
const bool GetChildBool( const char * Path, bool Default = false, bool Create = false );
|
||||
const long GetChildInt( const char * Path, long Default = 0, bool Create = false, const char * Mask = NULL );
|
||||
const double GetChildFloat( const char * Path, double Default = 0.0, bool Create = false, const char * Mask = NULL );
|
||||
const char * GetMemStr( const char * Path, const char * Default = NULL, bool Create = false );
|
||||
const char * GetMemStr( const char * Path, int &Len, const char * Default = NULL, bool Create = false );
|
||||
const bool GetMemBool( const char * Path, bool Default = false, bool Create = false );
|
||||
const long GetMemInt( const char * Path, long Default = 0, bool Create = false, const char * Mask = NULL );
|
||||
const double GetMemFloat( const char * Path, double Default = 0.0, bool Create = false, const char * Mask = NULL );
|
||||
|
||||
inline const char * GetStr( const char * Default = NULL, bool Create = false ) { return GetChildStr( NULL, Default, Create ); };
|
||||
inline const char * GetStr( int &Len, const char * Default = NULL, bool Create = false ) { return GetChildStr( NULL, Len, Default, Create ); };
|
||||
inline const bool GetBool( bool Default = false, bool Create = false ) { return GetChildBool( NULL, Default, Create ); };
|
||||
inline const long GetInt( long Default = 0, bool Create = false, const char * Mask = NULL ) { return GetChildInt( NULL, Default, Create, Mask ); };
|
||||
inline const double GetFloat( double Default = 0.0, bool Create = false, const char * Mask = NULL ) { return GetChildFloat( NULL, Default, Create, Mask ); };
|
||||
inline const char * GetStr( const char * Default = NULL, bool Create = false ) { return GetMemStr( NULL, Default, Create ); };
|
||||
inline const char * GetStr( int &Len, const char * Default = NULL, bool Create = false ) { return GetMemStr( NULL, Len, Default, Create ); };
|
||||
inline const bool GetBool( bool Default = false, bool Create = false ) { return GetMemBool( NULL, Default, Create ); };
|
||||
inline const long GetInt( long Default = 0, bool Create = false, const char * Mask = NULL ) { return GetMemInt( NULL, Default, Create, Mask ); };
|
||||
inline const double GetFloat( double Default = 0.0, bool Create = false, const char * Mask = NULL ) { return GetMemFloat( NULL, Default, Create, Mask ); };
|
||||
|
||||
bool SetChildBool( const char * Path, const bool Value );
|
||||
bool SetChildInt( const char * Path, const long Value, const char * Mask = NULL );
|
||||
bool SetChildFloat( const char * Path, const double Value, const char * Mask = NULL );
|
||||
bool SetChildStr( const char * Path, const char * Value = NULL, const int Len = -1 ); // Use Len param if Value contains NULL values
|
||||
bool SetMemBool( const char * Path, const bool Value );
|
||||
bool SetMemInt( const char * Path, const long Value, const char * Mask = NULL );
|
||||
bool SetMemFloat( const char * Path, const double Value, const char * Mask = NULL );
|
||||
bool SetMemStr( const char * Path, const char * Value = NULL, const int Len = -1 ); // Use Len param if Value contains NULL values
|
||||
|
||||
inline bool SetBool( const bool Value ) { return SetChildBool( NULL, Value ); };
|
||||
inline bool SetInt( const long Value, const char * Mask = NULL ) { return SetChildInt( NULL, Value, Mask ); };
|
||||
inline bool SetFloat( const double Value, const char * Mask = NULL ) { return SetChildFloat( NULL, Value, Mask ); };
|
||||
inline bool SetStr( const char * Value = NULL, const int Len = -1 ) { return SetChildStr( NULL, Value, Len ); };
|
||||
inline bool SetBool( const bool Value ) { return SetMemBool( NULL, Value ); };
|
||||
inline bool SetInt( const long Value, const char * Mask = NULL ) { return SetMemInt( NULL, Value, Mask ); };
|
||||
inline bool SetFloat( const double Value, const char * Mask = NULL ) { return SetMemFloat( NULL, Value, Mask ); };
|
||||
inline bool SetStr( const char * Value = NULL, const int Len = -1 ) { return SetMemStr( NULL, Value, Len ); };
|
||||
|
||||
bool SetChildNull( const char * Path );
|
||||
bool SetChildObject( const char * Path );
|
||||
bool SetChildArray( const char * Path );
|
||||
bool SetMemNull( const char * Path );
|
||||
bool SetMemObject( const char * Path );
|
||||
bool SetMemArray( const char * Path );
|
||||
|
||||
inline bool SetNull() { return SetChildNull( NULL ); };
|
||||
inline bool SetObject() { return SetChildObject( NULL ); };
|
||||
inline bool SetArray() { return SetChildArray( NULL ); };
|
||||
inline bool SetNull() { return SetMemNull( NULL ); };
|
||||
inline bool SetObject() { return SetMemObject( NULL ); };
|
||||
inline bool SetArray() { return SetMemArray( NULL ); };
|
||||
|
||||
bool Clear();
|
||||
bool Delete( const char * Path );
|
||||
|
||||
Reference in New Issue
Block a user