|
TrueReality
v0.1.1912
|
Forward declaration. More...
#include <Object.h>


Public Member Functions | |
| Object () | |
| ctor. More... | |
| Object (const Value &Object) | |
| ctor that takes a JSON Value of Object type as input. More... | |
| ~Object () | |
| dtor. More... | |
| const Value::Members | GetMemberNames () const |
| Returns the value names contained in the object. More... | |
| void | SetComment (const std::string &comment) |
| Sets a comment. More... | |
| bool | HasComment () const |
| Checks if the internal value has a comment. More... | |
| std::string | GetComment () const |
| Returns the internal comment. More... | |
| void | Clear () override |
| Clears the internal JSON Root node. More... | |
| virtual Value & | GetJSONRoot () override |
| Returns a reference to the internal JSON Root node. More... | |
| virtual void | PrintJSONRoot () override |
| Prints out to the screen the whole JSON Root content. More... | |
| virtual bool | KeyPresent (const std::string &key) const override |
| Checks if the JSON Root Node has an entry with a given key present. More... | |
| virtual bool | IsNull (const std::string &key) const override |
| Checks if the value stored at the specific key is a NULL. More... | |
| virtual void | SetNull (const std::string &key) override |
| Sets the value stored at the specific key to NULL. More... | |
| virtual bool | IsBool (const std::string &key) const override |
| Checks if the value stored at the specific key is a Boolean. More... | |
| virtual bool | GetBool (const std::string &key) const override |
| Returns the Boolean value stored at the given key. More... | |
| virtual void | SetBool (const std::string &key, const bool &value) override |
| Sets the Boolean value to be stored at the given key. More... | |
| virtual bool | IsTrue (const std::string &key) const override |
| Checks if the value stored at the specific key is True. More... | |
| virtual bool | IsFalse (const std::string &key) const override |
| Checks if the value stored at the specific key is False. More... | |
| virtual bool | IsNumber (const std::string &key) const override |
| Checks if the value stored at the specific key is a Number. More... | |
| virtual bool | IsInt (const std::string &key) const override |
| Checks if the value stored at the specific key is an Integer. More... | |
| virtual int | GetInt (const std::string &key) const override |
| Returns the Integer value stored at the given key. More... | |
| virtual void | SetInt (const std::string &key, const int &value) override |
| Sets the Integer value to be stored at the given key. More... | |
| virtual bool | IsDouble (const std::string &key) const override |
| Checks if the value stored at the specific key is a Double. More... | |
| virtual double | GetDouble (const std::string &key) const override |
| Returns the Double value stored at the given key. More... | |
| virtual void | SetDouble (const std::string &key, const double &value) override |
| Sets the Double value to be stored at the given key. More... | |
| virtual bool | IsUInt (const std::string &key) const override |
| Checks if the value stored at the specific key is an Unsigned Integer. More... | |
| virtual unsigned int | GetUInt (const std::string &key) const override |
| Returns the Unsigned Integer value stored at the given key. More... | |
| virtual void | SetUInt (const std::string &key, const unsigned int &value) override |
| Sets the Unsigned Integer value to be stored at the given key. More... | |
| virtual bool | IsInt64 (const std::string &key) const override |
| Checks if the value stored at the specific key is a 64bit Integer. More... | |
| virtual Int64 | GetInt64 (const std::string &key) const override |
| Returns the 64bit Integer value stored at the given key. More... | |
| virtual void | SetInt64 (const std::string &key, const Int64 &value) override |
| Sets the 64bit Integer value to be stored at the given key. More... | |
| virtual bool | IsUInt64 (const std::string &key) const override |
| Checks if the value stored at the specific key is a 64bit Integer. More... | |
| virtual UInt64 | GetUInt64 (const std::string &key) const override |
| Returns the 64bit Integer value stored at the given key. More... | |
| virtual void | SetUInt64 (const std::string &key, const UInt64 &value) override |
| Sets the 64bit Integer value to be stored at the given key. More... | |
| virtual bool | IsFloat (const std::string &key) const override |
| Checks if the value stored at the specific key is a float. More... | |
| virtual float | GetFloat (const std::string &key) const override |
| Returns the float value stored at the given key. More... | |
| virtual void | SetFloat (const std::string &key, const float &value) override |
| Sets the float value to be stored at the given key. More... | |
| virtual bool | IsString (const std::string &key) const override |
| Checks if the value stored at the specific key is a String. More... | |
| virtual const std::string | GetString (const std::string &key) const override |
| Returns the String value stored at the given key. More... | |
| virtual void | SetString (const std::string &key, const std::string &value) override |
| Sets the String to be stored at the given key. More... | |
| virtual bool | IsArray (const std::string &key) const override |
| Checks if the value stored at the specific key is an Array. More... | |
| virtual Array | GetArray (const std::string &key) const override |
| Returns the Array value stored at the given key. More... | |
| virtual void | SetArray (const std::string &key, Array &value) override |
| Sets the Array to be stored at the given key. More... | |
| virtual bool | IsObject (const std::string &key) const override |
| Checks if the value stored at the specific key is an Object. More... | |
| virtual Object | GetObject (const std::string &key) const override |
| Returns the Object value stored at the given key. More... | |
| virtual void | SetObject (const std::string &key, Object &value) override |
| Sets the Array to be stored at the given key. More... | |
Private Attributes | |
| Value | mRoot = Value(ValueType::ObjectValue) |
| The root. More... | |
Additional Inherited Members |
| trUtil::JSON::Object::Object | ( | ) |
ctor.
Definition at line 31 of file Object.cpp.
Referenced by Object().

| trUtil::JSON::Object::Object | ( | const Value & | Object | ) |
| trUtil::JSON::Object::~Object | ( | ) |
dtor.
Definition at line 41 of file Object.cpp.
|
overridevirtual |
Clears the internal JSON Root node.
Implements trUtil::JSON::Base.
Definition at line 69 of file Object.cpp.
References trUtil::JSON::Value::Clear(), and mRoot.

|
overridevirtual |
Returns the Array value stored at the given key.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 295 of file Object.cpp.
References trUtil::JSON::Value::GetArray(), and mRoot.

|
overridevirtual |
Returns the Boolean value stored at the given key.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 111 of file Object.cpp.
References trUtil::JSON::Value::GetBool(), and mRoot.
Referenced by IsFalse(), and IsTrue().


| std::string trUtil::JSON::Object::GetComment | ( | ) | const |
Returns the internal comment.
Definition at line 63 of file Object.cpp.
References trUtil::JSON::Value::GetComment(), and mRoot.

|
overridevirtual |
Returns the Double value stored at the given key.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 187 of file Object.cpp.
References trUtil::JSON::Value::GetDouble(), and mRoot.

|
overridevirtual |
Returns the float value stored at the given key.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 259 of file Object.cpp.
References trUtil::JSON::Value::GetFloat(), and mRoot.

|
overridevirtual |
Returns the Integer value stored at the given key.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 169 of file Object.cpp.
References trUtil::JSON::Value::GetInt(), and mRoot.

|
overridevirtual |
Returns the 64bit Integer value stored at the given key.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 223 of file Object.cpp.
References trUtil::JSON::Value::GetInt64(), and mRoot.

|
overridevirtual |
Returns a reference to the internal JSON Root node.
Implements trUtil::JSON::Base.
Definition at line 75 of file Object.cpp.
References mRoot.
Referenced by trUtil::JSON::Array::AddObject(), and trUtil::JSON::Value::SetObject().

| const Value::Members trUtil::JSON::Object::GetMemberNames | ( | ) | const |
Returns the value names contained in the object.
Definition at line 45 of file Object.cpp.
References trUtil::JSON::Value::GetMemberNames(), and mRoot.

|
overridevirtual |
Returns the Object value stored at the given key.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 313 of file Object.cpp.
References trUtil::JSON::Value::GetObject(), and mRoot.

|
overridevirtual |
Returns the String value stored at the given key.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 277 of file Object.cpp.
References trUtil::JSON::Value::GetString(), and mRoot.

|
overridevirtual |
Returns the Unsigned Integer value stored at the given key.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 205 of file Object.cpp.
References trUtil::JSON::Value::GetUInt(), and mRoot.

|
overridevirtual |
Returns the 64bit Integer value stored at the given key.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 241 of file Object.cpp.
References trUtil::JSON::Value::GetUInt64(), and mRoot.

| bool trUtil::JSON::Object::HasComment | ( | ) | const |
Checks if the internal value has a comment.
Definition at line 57 of file Object.cpp.
References trUtil::JSON::Value::HasComment(), and mRoot.

|
overridevirtual |
Checks if the value stored at the specific key is an Array.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 289 of file Object.cpp.
References trUtil::JSON::Value::IsArray(), and mRoot.

|
overridevirtual |
Checks if the value stored at the specific key is a Boolean.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 105 of file Object.cpp.
References trUtil::JSON::Value::IsBool(), and mRoot.

|
overridevirtual |
Checks if the value stored at the specific key is a Double.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 181 of file Object.cpp.
References trUtil::JSON::Value::IsDouble(), and mRoot.

|
overridevirtual |
Checks if the value stored at the specific key is False.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 140 of file Object.cpp.
References GetBool(), and KeyPresent().

|
overridevirtual |
Checks if the value stored at the specific key is a float.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 253 of file Object.cpp.
References trUtil::JSON::Value::IsFloat(), and mRoot.

|
overridevirtual |
Checks if the value stored at the specific key is an Integer.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 163 of file Object.cpp.
References trUtil::JSON::Value::IsInt(), and mRoot.

|
overridevirtual |
Checks if the value stored at the specific key is a 64bit Integer.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 217 of file Object.cpp.
References trUtil::JSON::Value::IsInt64(), and mRoot.

|
overridevirtual |
Checks if the value stored at the specific key is a NULL.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 93 of file Object.cpp.
References trUtil::JSON::Value::IsNull(), and mRoot.

|
overridevirtual |
Checks if the value stored at the specific key is a Number.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 157 of file Object.cpp.
References trUtil::JSON::Value::IsNumber(), and mRoot.

|
overridevirtual |
Checks if the value stored at the specific key is an Object.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 307 of file Object.cpp.
References trUtil::JSON::Value::IsObject(), and mRoot.

|
overridevirtual |
Checks if the value stored at the specific key is a String.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 271 of file Object.cpp.
References trUtil::JSON::Value::IsString(), and mRoot.

|
overridevirtual |
Checks if the value stored at the specific key is True.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 123 of file Object.cpp.
References GetBool(), and KeyPresent().

|
overridevirtual |
Checks if the value stored at the specific key is an Unsigned Integer.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 199 of file Object.cpp.
References trUtil::JSON::Value::IsUInt(), and mRoot.

|
overridevirtual |
Checks if the value stored at the specific key is a 64bit Integer.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 235 of file Object.cpp.
References trUtil::JSON::Value::IsUInt64(), and mRoot.

|
overridevirtual |
Checks if the JSON Root Node has an entry with a given key present.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 87 of file Object.cpp.
References trUtil::JSON::Value::KeyPresent(), and mRoot.
Referenced by IsFalse(), and IsTrue().


|
overridevirtual |
Prints out to the screen the whole JSON Root content.
Implements trUtil::JSON::Base.
Definition at line 81 of file Object.cpp.
References mRoot.
|
overridevirtual |
Sets the Array to be stored at the given key.
| key | The key. | |
| [in,out] | value | The value. |
Implements trUtil::JSON::Base.
Definition at line 301 of file Object.cpp.
References mRoot, and trUtil::JSON::Value::SetArray().

|
overridevirtual |
Sets the Boolean value to be stored at the given key.
| key | The key. |
| value | The value. |
Implements trUtil::JSON::Base.
Definition at line 117 of file Object.cpp.
References mRoot, and trUtil::JSON::Value::SetBool().

| void trUtil::JSON::Object::SetComment | ( | const std::string & | comment | ) |
Sets a comment.
| comment | The comment. |
Definition at line 51 of file Object.cpp.
References mRoot, and trUtil::JSON::Value::SetComment().

|
overridevirtual |
Sets the Double value to be stored at the given key.
| key | The key. |
| value | The value. |
Implements trUtil::JSON::Base.
Definition at line 193 of file Object.cpp.
References mRoot, and trUtil::JSON::Value::SetDouble().

|
overridevirtual |
Sets the float value to be stored at the given key.
| key | The key. |
| value | The value. |
Implements trUtil::JSON::Base.
Definition at line 265 of file Object.cpp.
References mRoot, and trUtil::JSON::Value::SetFloat().

|
overridevirtual |
Sets the Integer value to be stored at the given key.
| key | The key. |
| value | The value. |
Implements trUtil::JSON::Base.
Definition at line 175 of file Object.cpp.
References mRoot, and trUtil::JSON::Value::SetInt().

|
overridevirtual |
Sets the 64bit Integer value to be stored at the given key.
| key | The key. |
| value | The value. |
Implements trUtil::JSON::Base.
Definition at line 229 of file Object.cpp.
References mRoot, and trUtil::JSON::Value::SetInt64().

|
overridevirtual |
Sets the value stored at the specific key to NULL.
| key | The key. |
Implements trUtil::JSON::Base.
Definition at line 99 of file Object.cpp.
References mRoot, and trUtil::JSON::Value::SetNull().

|
overridevirtual |
Sets the Array to be stored at the given key.
| key | The key. | |
| [in,out] | value | The value. |
Implements trUtil::JSON::Base.
Definition at line 319 of file Object.cpp.
References mRoot, and trUtil::JSON::Value::SetObject().

|
overridevirtual |
Sets the String to be stored at the given key.
| key | The key. |
| value | The value. |
Implements trUtil::JSON::Base.
Definition at line 283 of file Object.cpp.
References mRoot, and trUtil::JSON::Value::SetString().

|
overridevirtual |
Sets the Unsigned Integer value to be stored at the given key.
| key | The key. |
| value | The value. |
Implements trUtil::JSON::Base.
Definition at line 211 of file Object.cpp.
References mRoot, and trUtil::JSON::Value::SetUInt().

|
overridevirtual |
Sets the 64bit Integer value to be stored at the given key.
| key | The key. |
| value | The value. |
Implements trUtil::JSON::Base.
Definition at line 247 of file Object.cpp.
References mRoot, and trUtil::JSON::Value::SetUInt64().

The root.
Definition at line 522 of file Object.h.
Referenced by Clear(), GetArray(), GetBool(), GetComment(), GetDouble(), GetFloat(), GetInt(), GetInt64(), GetJSONRoot(), GetMemberNames(), GetObject(), GetString(), GetUInt(), GetUInt64(), HasComment(), IsArray(), IsBool(), IsDouble(), IsFloat(), IsInt(), IsInt64(), IsNull(), IsNumber(), IsObject(), IsString(), IsUInt(), IsUInt64(), KeyPresent(), Object(), PrintJSONRoot(), SetArray(), SetBool(), SetComment(), SetDouble(), SetFloat(), SetInt(), SetInt64(), SetNull(), SetObject(), SetString(), SetUInt(), and SetUInt64().