Public Types | |
typedef notboost::shared_ptr< Object > | PtrType |
typedef std::vector< PtrType > | ArrayType |
typedef std::map< std::string, PtrType > | HashType |
typedef Token | TokenType |
enum | obj_types { type_notalloc = 0, type_scalar, type_array, type_hash, type_token } |
Public Member Functions | |
Object (obj_types t) throw (tptexception) | |
Object (const Object &obj) throw (tptexception) | |
Object (const std::string &s) | |
Object (const char *str) | |
Object (const ArrayType &a) | |
Object (const HashType &h) | |
Object (const TokenType &tok) | |
Object (const TArrayType &v) | |
Object (const THashType &h) | |
void | deallocate () |
Object & | operator= (const std::string &s) |
Object & | operator= (const char *s) |
Object & | operator= (const ArrayType &a) |
Object & | operator= (const HashType &h) |
Object & | operator= (const TokenType &tok) |
Object & | operator= (const Object &obj) throw (tptexception) |
Object & | operator= (obj_types t) throw (tptexception) |
Object & | operator= (const TArrayType &v) |
Object & | operator= (const THashType &h) |
operator bool () | |
bool | exists (const std::string &key) |
obj_types | gettype () const |
void | settype (obj_types t) throw (tptexception) |
std::string & | scalar () throw (tptexception) |
ArrayType & | array () throw (tptexception) |
HashType & | hash () throw (tptexception) |
TokenType & | token () throw (tptexception) |
Object & | operator[] (unsigned) throw (tptexception) |
Object & | operator[] (const std::string &k) throw (tptexception) |
Object & | operator[] (const char *k) throw (tptexception) |
Use Object::gettype() to determine the type of object before calling the corresponding method: Object::scalar(), Object::array(), Object::hash().
|
Construct an object of the specified type.
|
|
Construct a copy of another object.
|
|
Construct an object of a scalar std::string.
|
|
Construct an object of a scalar std::string from a char*.
|
|
Construct an object of a array of objects.
|
|
Construct an object of a hash of objects.
|
|
Construct an object of a token of objects.
|
|
Construct an object containing an array of objects.
|
|
Construct an object containing a hash of objects.
|
|
Get this object's array of objects
|
|
Deallocate this object and any objects it cointains.
|
|
Tell if a key exists in a hash table.
|
|
Get this object's hash of objects
|
|
Assign a hash of strings to the current object.
|
|
Assign an array of strings to the current object.
|
|
Change an object's type to an empty object of the specified type.
|
|
Copy another object to this object.
|
|
Copy a token to this object.
|
|
Copy a hash of objects to this object.
|
|
Copy an array of objects to this object.
|
|
Copy a scalar string to this object.
|
|
Copy a scalar string to this object.
|
|
Get the specified object member of this hash object for reading or writing. If the requested key does not yet exist, it will be initialized with an empty Object.
|
|
Get the specified object member of this hash object for reading or writing. If the requested key does not yet exist, it will be initialized with an empty Object.
|
|
Get the specified object member of this array object. If the requested index does not yet exist, the array will be enlarged. All new elements will be initialized to an empty Object.
|
|
Get this object's string
|
|
Change an object's type to an empty object of the specified type.
|
|
Get this object's token
|