|
TrueReality
v0.1.1912
|
Represents a JSON value. More...
#include <Value.h>
Public Types | |
| using | Members = std::vector< std::string > |
| The members. More... | |
Public Member Functions | |
| Value (Json::Value &value) | |
| ctor. More... | |
| Value (ValueType type=NullValue) | |
| ctor. More... | |
| Value (Int value) | |
| ctor. More... | |
| Value (UInt value) | |
| ctor. More... | |
| Value (Int64 value) | |
| ctor. More... | |
| Value (UInt64 value) | |
| ctor. More... | |
| Value (double value) | |
| ctor. More... | |
| Value (const char *value) | |
| Copy til first 0. (NULL causes to seg-fault.) More... | |
| Value (const char *begin, const char *end) | |
| Copy all, incl zeroes. More... | |
| Value (const std::string &value) | |
| Copy data() til size(). Embedded zeroes too. More... | |
| Value (bool value) | |
| ctor. More... | |
| Value (const Value &other) | |
| ctor. More... | |
| ~Value () | |
| dtor. More... | |
| Json::Value & | GetJsonValue () |
| Returns a reference to the internal Json::Value. More... | |
| const Json::Value & | GetJsonValue () const |
| Returns a reference to the internal Json::Value. More... | |
| void | SetComment (const std::string &comment) |
| Adds a comment to the internal value. More... | |
| bool | HasComment () const |
| Checks if the internal value has a comment. More... | |
| std::string | GetComment () const |
| Returns the internal comment. More... | |
| virtual void | Clear () |
| Clears the internal JSON Root node. More... | |
| int | Size () |
| Returns the size of the array. More... | |
| void | Resize (int newSize) |
| Change the size of the array. More... | |
| bool | IsValidIndex (int index) const |
| Return true if index < Size() More... | |
| bool | RemoveIndex (int index, Value *removedVal) |
| Remove the given Index value. More... | |
| Value | Index (int index) |
| Returns the Value at the given index if this Value is an Array The return is by value, but the internal json object is stored by reference. More... | |
| const Value::Members | GetMemberNames () const |
| Returns the value names contained in the object. More... | |
| bool | HasMember (const std::string &key) const |
| Returns true if a member with the passed in key is present. More... | |
| virtual bool | KeyPresent (const std::string &key) const |
| Checks if the JSON Root Node has an entry with a given key present. More... | |
| virtual bool | IsNull () const |
| Checks if the value stored is a NULL. More... | |
| virtual bool | IsNull (const int index) const |
| Checks if the value stored is a NULL. More... | |
| virtual bool | IsNull (const std::string &key) const |
| Checks if the value stored is a NULL. More... | |
| virtual void | SetNull (const std::string &key) const |
| Sets the NULL value in the Object. More... | |
| virtual bool | IsEmpty () const |
| Return true if empty array, empty object, or null, otherwise, false. More... | |
| virtual bool | IsEmpty (const int index) const |
| Return true if empty array, empty object, or null, otherwise, false. More... | |
| virtual bool | IsEmpty (const std::string &key) const |
| Return true if empty array, empty object, or null, otherwise, false. More... | |
| virtual void | Append (const Value &val) |
| Add a value at the end of the array. More... | |
| virtual bool | IsBool () const |
| Checks if the value stored is a Boolean. More... | |
| virtual bool | IsBool (const int index) const |
| Checks if the value stored is a Boolean. More... | |
| virtual bool | IsBool (const std::string &key) const |
| Checks if the value stored is a Boolean. More... | |
| virtual bool | GetBool () const |
| Returns the Boolean value. More... | |
| virtual bool | GetBool (const int index) const |
| Returns the Boolean value. More... | |
| virtual bool | GetBool (const std::string &key) const |
| Returns the Boolean value. More... | |
| virtual void | SetBool (const std::string &key, bool value) |
| Sets the Boolean value in the Object. More... | |
| virtual bool | IsNumber () const |
| Checks if the value stored is a Number. More... | |
| virtual bool | IsNumber (const int index) const |
| Checks if the value stored is a Number. More... | |
| virtual bool | IsNumber (const std::string &key) const |
| Checks if the value stored is a Number. More... | |
| virtual bool | IsInt () const |
| Checks if the value stored is an Integer. More... | |
| virtual bool | IsInt (const int index) const |
| Checks if the value stored is an Integer. More... | |
| virtual bool | IsInt (const std::string &key) const |
| Checks if the value stored is an Integer. More... | |
| virtual int | GetInt () const |
| Returns the Integer value. More... | |
| virtual int | GetInt (const int index) const |
| Returns the Integer value. More... | |
| virtual int | GetInt (const std::string &key) const |
| Returns the Integer value. More... | |
| virtual void | SetInt (const std::string &key, int value) |
| Sets the Integer value in the Object. More... | |
| virtual bool | IsDouble () const |
| Checks if the value stored is a Double. More... | |
| virtual bool | IsDouble (const int index) const |
| Checks if the value stored is a Double. More... | |
| virtual bool | IsDouble (const std::string &key) const |
| Checks if the value stored is a Double. More... | |
| virtual double | GetDouble () const |
| Returns the Double value. More... | |
| virtual double | GetDouble (const int index) const |
| Returns the Double value. More... | |
| virtual double | GetDouble (const std::string &key) const |
| Returns the Double value. More... | |
| virtual void | SetDouble (const std::string &key, double value) |
| Sets the Double value in the Object. More... | |
| virtual bool | IsUInt () const |
| Checks if the value stored Unsigned Integer. More... | |
| virtual bool | IsUInt (const int index) const |
| Checks if the value stored Unsigned Integer. More... | |
| virtual bool | IsUInt (const std::string &key) const |
| Checks if the value stored Unsigned Integer. More... | |
| virtual unsigned int | GetUInt () const |
| Returns the Unsigned Integer value. More... | |
| virtual unsigned int | GetUInt (const int index) const |
| Returns the Unsigned Integer value. More... | |
| virtual unsigned int | GetUInt (const std::string &key) const |
| Returns the Unsigned Integer value. More... | |
| virtual void | SetUInt (const std::string &key, unsigned int value) |
| Sets the Unsigned Int value in the Object. More... | |
| virtual bool | IsInt64 () const |
| Checks if the value stored is a 64bit Integer. More... | |
| virtual bool | IsInt64 (const int index) const |
| Checks if the value stored is a 64bit Integer. More... | |
| virtual bool | IsInt64 (const std::string &key) const |
| Checks if the value stored is a 64bit Integer. More... | |
| virtual Int64 | GetInt64 () const |
| Returns the 64bit Integer value. More... | |
| virtual Int64 | GetInt64 (const int index) const |
| Returns the 64bit Integer value. More... | |
| virtual Int64 | GetInt64 (const std::string &key) const |
| Returns the 64bit Integer value. More... | |
| virtual void | SetInt64 (const std::string &key, Int64 value) |
| Sets the Int64 value in the Object. More... | |
| virtual bool | IsUInt64 () const |
| Checks if the value stored is a 64bit Unsigned Integer. More... | |
| virtual bool | IsUInt64 (const int index) const |
| Checks if the value stored is a 64bit Unsigned Integer. More... | |
| virtual bool | IsUInt64 (const std::string &key) const |
| Checks if the value stored is a 64bit Unsigned Integer. More... | |
| virtual UInt64 | GetUInt64 () const |
| Returns the Unsigned 64bit Integer value. More... | |
| virtual UInt64 | GetUInt64 (const int index) const |
| Returns the Unsigned 64bit Integer value. More... | |
| virtual UInt64 | GetUInt64 (const std::string &key) const |
| Returns the Unsigned 64bit Integer value. More... | |
| virtual void | SetUInt64 (const std::string &key, UInt64 value) |
| Sets the Unsigned Int64 value in the Object. More... | |
| virtual bool | IsFloat () const |
| Checks if the value stored is a float. More... | |
| virtual bool | IsFloat (const int index) const |
| Checks if the value stored is a float. More... | |
| virtual bool | IsFloat (const std::string &key) const |
| Checks if the value stored is a float. More... | |
| virtual float | GetFloat () const |
| Returns the float value stored. More... | |
| virtual float | GetFloat (const int index) const |
| Returns the float value stored. More... | |
| virtual float | GetFloat (const std::string &key) const |
| Returns the float value stored. More... | |
| virtual void | SetFloat (const std::string &key, float value) |
| Sets the Float value in the Object. More... | |
| virtual bool | IsString () const |
| Checks if the value stored is a String. More... | |
| virtual bool | IsString (const int index) const |
| Checks if the value stored is a String. More... | |
| virtual bool | IsString (const std::string &key) const |
| Checks if the value stored is a String. More... | |
| virtual const std::string | GetString () const |
| Returns the String value stored. More... | |
| virtual const std::string | GetString (const int index) const |
| Returns the String value stored. More... | |
| virtual const std::string | GetString (const std::string &key) const |
| Returns the String value stored. More... | |
| virtual void | SetString (const std::string &key, const std::string &value) |
| Sets the String value in the Object. More... | |
| virtual bool | IsArray () const |
| Checks if the value stored is an Array. More... | |
| virtual bool | IsArray (const int index) const |
| Checks if the value stored is an Array. More... | |
| virtual bool | IsArray (const std::string &key) const |
| Checks if the value stored is an Array. More... | |
| virtual const Array | GetArray () const |
| Returns the Array value stored. More... | |
| virtual const Array | GetArray (const int index) const |
| Returns the Array value stored. More... | |
| virtual const Array | GetArray (const std::string &key) const |
| Returns the Array value stored. More... | |
| virtual void | SetArray (const std::string &key, Array &value) |
| Sets the Array value in the Object. More... | |
| virtual bool | IsObject () const |
| Checks if the value stored is an Object. More... | |
| virtual bool | IsObject (const int index) const |
| Checks if the value stored is an Object. More... | |
| virtual bool | IsObject (const std::string &key) const |
| Checks if the value stored is an Object. More... | |
| virtual const Object | GetObject () const |
| Returns the Object value stored. More... | |
| virtual const Object | GetObject (const int index) const |
| Returns the Object value stored. More... | |
| virtual const Object | GetObject (const std::string &key) const |
| Returns the Object value stored. More... | |
| virtual void | SetObject (const std::string &key, Object &value) |
| Sets the Object value in the Object. More... | |
| operator Json::Value () const | |
| Implicit conversion operator to Json::Value. More... | |
| operator Json::Value & () | |
| Implicit conversion operator to Json::Value. More... | |
| operator const Json::Value & () const | |
| Implicit conversion operator to Json::Value. More... | |
| operator Json::Value * () | |
| Implicit conversion operator to Json::Value. More... | |
| Value & | operator= (Value other) |
| // Access an object value by name, returns null if there is no member with // that name. More... | |
Protected Attributes | |
| bool | clearInternalVal = true |
| True to clear internal value. More... | |
| Json::Value * | mValuePtr = nullptr |
| The value pointer. More... | |
Represents a JSON value.
This class is a discriminated union wrapper that can represents a:
The type of the held value is represented by a ValueType and can be obtained using Type().
Values of an ObjectValue or ArrayValue can be accessed using operator[]() methods. Non-const methods will automatically create the a NullValue element if it does not exist. The sequence of an ArrayValue will be automatically resized and initialized with #nNllValue. Resize() can be used to enlarge or truncate an ArrayValue.
The Get() methods can be used to obtain default value in the case the required element does not exist.
It is possible to iterate over the list of a ObjectValue values using the GetMemberNames() method.
| using trUtil::JSON::Value::Members = std::vector<std::string> |
| Value::Value | ( | Json::Value & | value | ) |
ctor.
| [in,out] | value | The value. |
Definition at line 119 of file Value.cpp.
References clearInternalVal, and mValuePtr.
Referenced by Index().

ctor.
| type | (Optional) The type. |
Definition at line 126 of file Value.cpp.
References mValuePtr, and trUtil::JSON::ToValueType().

| Value::Value | ( | Int | value | ) |
| Value::Value | ( | UInt | value | ) |
| Value::Value | ( | Int64 | value | ) |
| Value::Value | ( | UInt64 | value | ) |
| Value::Value | ( | double | value | ) |
| Value::Value | ( | const char * | value | ) |
| Value::Value | ( | const char * | begin, |
| const char * | end | ||
| ) |
| Value::Value | ( | const std::string & | value | ) |
| Value::Value | ( | bool | value | ) |
| Value::Value | ( | const Value & | other | ) |
| Value::~Value | ( | ) |
|
virtual |
Add a value at the end of the array.
| val | The Value to append. |
Definition at line 336 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Array::AddArray(), trUtil::JSON::Array::AddBool(), trUtil::JSON::Array::AddDouble(), trUtil::JSON::Array::AddFloat(), trUtil::JSON::Array::AddInt(), trUtil::JSON::Array::AddInt64(), trUtil::JSON::Array::AddNull(), trUtil::JSON::Array::AddObject(), trUtil::JSON::Array::AddString(), trUtil::JSON::Array::AddUInt(), and trUtil::JSON::Array::AddUInt64().

|
virtual |
Clears the internal JSON Root node.
Definition at line 240 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::Clear(), trUtil::JSON::Array::Clear(), trUtil::JSON::File::Clear(), and trUtil::JSON::File::ReadFromFile().

|
virtual |
Returns the Array value stored.
Definition at line 714 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::GetArray(), trUtil::JSON::Array::GetArray(), and trUtil::JSON::File::GetArray().

|
virtual |
|
virtual |
|
virtual |
Returns the Boolean value.
Definition at line 360 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::GetBool(), trUtil::JSON::Array::GetBool(), and trUtil::JSON::File::GetBool().

|
virtual |
|
virtual |
| std::string Value::GetComment | ( | ) | const |
Returns the internal comment.
Definition at line 226 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::GetComment(), and trUtil::JSON::Array::GetComment().

|
virtual |
Returns the Double value.
Definition at line 462 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::GetDouble(), trUtil::JSON::Array::GetDouble(), and trUtil::JSON::File::GetDouble().

|
virtual |
|
virtual |
|
virtual |
Returns the float value stored.
Definition at line 630 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::GetFloat(), trUtil::JSON::Array::GetFloat(), and trUtil::JSON::File::GetFloat().

|
virtual |
|
virtual |
|
virtual |
Returns the Integer value.
Definition at line 420 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::GetInt(), trUtil::JSON::Array::GetInt(), and trUtil::JSON::File::GetInt().

|
virtual |
|
virtual |
|
virtual |
Returns the 64bit Integer value.
Definition at line 546 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::GetInt64(), trUtil::JSON::Array::GetInt64(), and trUtil::JSON::File::GetInt64().

|
virtual |
|
virtual |
| Json::Value & Value::GetJsonValue | ( | ) |
Returns a reference to the internal Json::Value.
Definition at line 202 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::File::ReadFromFile(), and RemoveIndex().

| const Json::Value & Value::GetJsonValue | ( | ) | const |
| const Value::Members Value::GetMemberNames | ( | ) | const |
Returns the value names contained in the object.
Definition at line 276 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::GetMemberNames().

|
virtual |
Returns the Object value stored.
Definition at line 759 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::GetObject(), trUtil::JSON::Array::GetObject(), and trUtil::JSON::File::GetObject().

|
virtual |
|
virtual |
|
virtual |
Returns the String value stored.
Definition at line 672 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::GetString(), trUtil::JSON::Array::GetString(), and trUtil::JSON::File::GetString().

|
virtual |
|
virtual |
|
virtual |
Returns the Unsigned Integer value.
Definition at line 504 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::GetUInt(), trUtil::JSON::Array::GetUInt(), and trUtil::JSON::File::GetUInt().

|
virtual |
|
virtual |
|
virtual |
Returns the Unsigned 64bit Integer value.
Definition at line 588 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::GetUInt64(), trUtil::JSON::Array::GetUInt64(), and trUtil::JSON::File::GetUInt64().

|
virtual |
|
virtual |
| bool Value::HasComment | ( | ) | const |
Checks if the internal value has a comment.
Definition at line 220 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::HasComment(), and trUtil::JSON::Array::HasComment().

| bool Value::HasMember | ( | const std::string & | key | ) | const |
Returns true if a member with the passed in key is present.
| key | The key. |
Definition at line 282 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::File::KeyPresent().

| Value Value::Index | ( | int | index | ) |
Returns the Value at the given index if this Value is an Array The return is by value, but the internal json object is stored by reference.
| index | Zero-based index of the values position. |
Definition at line 270 of file Value.cpp.
References mValuePtr, and Value().
Referenced by trUtil::JSON::Array::operator[]().


|
virtual |
Checks if the value stored is an Array.
Definition at line 696 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::IsArray(), trUtil::JSON::Array::IsArray(), and trUtil::JSON::File::IsArray().

|
virtual |
|
virtual |
|
virtual |
Checks if the value stored is a Boolean.
Definition at line 342 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::IsBool(), trUtil::JSON::Array::IsBool(), and trUtil::JSON::File::IsBool().

|
virtual |
|
virtual |
|
virtual |
Checks if the value stored is a Double.
Definition at line 444 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::IsDouble(), trUtil::JSON::Array::IsDouble(), and trUtil::JSON::File::IsDouble().

|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Checks if the value stored is a float.
Definition at line 612 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::IsFloat(), trUtil::JSON::Array::IsFloat(), and trUtil::JSON::File::IsFloat().

|
virtual |
|
virtual |
|
virtual |
Checks if the value stored is an Integer.
Definition at line 402 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::IsInt(), trUtil::JSON::Array::IsInt(), and trUtil::JSON::File::IsInt().

|
virtual |
|
virtual |
|
virtual |
Checks if the value stored is a 64bit Integer.
Definition at line 528 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::IsInt64(), trUtil::JSON::Array::IsInt64(), and trUtil::JSON::File::IsInt64().

|
virtual |
|
virtual |
|
virtual |
Checks if the value stored is a NULL.
Definition at line 294 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::IsNull(), trUtil::JSON::Array::IsNull(), and trUtil::JSON::File::IsNull().

|
virtual |
|
virtual |
|
virtual |
Checks if the value stored is a Number.
Definition at line 384 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::IsNumber(), trUtil::JSON::Array::IsNumber(), and trUtil::JSON::File::IsNumber().

|
virtual |
|
virtual |
|
virtual |
Checks if the value stored is an Object.
Definition at line 741 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::IsObject(), trUtil::JSON::Array::IsObject(), and trUtil::JSON::File::IsObject().

|
virtual |
|
virtual |
|
virtual |
Checks if the value stored is a String.
Definition at line 654 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::IsString(), trUtil::JSON::Array::IsString(), and trUtil::JSON::File::IsString().

|
virtual |
|
virtual |
|
virtual |
Checks if the value stored Unsigned Integer.
Definition at line 486 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::IsUInt(), trUtil::JSON::Array::IsUInt(), and trUtil::JSON::File::IsUInt().

|
virtual |
|
virtual |
|
virtual |
Checks if the value stored is a 64bit Unsigned Integer.
Definition at line 570 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::IsUInt64(), trUtil::JSON::Array::IsUInt64(), and trUtil::JSON::File::IsUInt64().

|
virtual |
|
virtual |
| bool Value::IsValidIndex | ( | int | index | ) | const |
|
virtual |
Checks if the JSON Root Node has an entry with a given key present.
| key | The key. |
Definition at line 288 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::KeyPresent().

| Value::operator const Json::Value & | ( | ) | const |
| Value::operator Json::Value | ( | ) | const |
| Value::operator Json::Value & | ( | ) |
| Value::operator Json::Value * | ( | ) |
// Access an object value by name, returns null if there is no member with // that name.
//
| key | may contain embedded nulls. //const Value operator[](const std::string& key) const; |
| other | The other. |
Definition at line 849 of file Value.cpp.
References mValuePtr.
| bool Value::RemoveIndex | ( | int | index, |
| Value * | removedVal | ||
| ) |
Remove the given Index value.
| index | Zero-based index of the values position. | |
| [in,out] | removedVal | If non-null, the removed value. |
Definition at line 264 of file Value.cpp.
References GetJsonValue(), and mValuePtr.
Referenced by trUtil::JSON::Array::RemoveIndex().


| void Value::Resize | ( | int | newSize | ) |
Change the size of the array.
| newSize | Size of the new. |
Definition at line 252 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Array::Resize().

|
virtual |
Sets the Array value in the Object.
| key | The key. | |
| [in,out] | value | The value. |
Definition at line 735 of file Value.cpp.
References trUtil::JSON::Array::GetJSONRoot().
Referenced by trUtil::JSON::Object::SetArray(), and trUtil::JSON::File::SetArray().


|
virtual |
Sets the Boolean value in the Object.
| key | The key. |
| value | True to value. |
Definition at line 378 of file Value.cpp.
Referenced by trUtil::JSON::Object::SetBool(), and trUtil::JSON::File::SetBool().

| void Value::SetComment | ( | const std::string & | comment | ) |
Adds a comment to the internal value.
| comment | The comment. |
Definition at line 214 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Object::SetComment(), and trUtil::JSON::Array::SetComment().

|
virtual |
Sets the Double value in the Object.
| key | The key. |
| value | The value. |
Definition at line 480 of file Value.cpp.
Referenced by trUtil::JSON::Object::SetDouble(), and trUtil::JSON::File::SetDouble().

|
virtual |
Sets the Float value in the Object.
| key | The key. |
| value | The value. |
Definition at line 648 of file Value.cpp.
Referenced by trUtil::JSON::Object::SetFloat(), and trUtil::JSON::File::SetFloat().

|
virtual |
Sets the Integer value in the Object.
| key | The key. |
| value | The value. |
Definition at line 438 of file Value.cpp.
Referenced by trUtil::JSON::Object::SetInt(), and trUtil::JSON::File::SetInt().

|
virtual |
Sets the Int64 value in the Object.
| key | The key. |
| value | The value. |
Definition at line 564 of file Value.cpp.
Referenced by trUtil::JSON::Object::SetInt64(), and trUtil::JSON::File::SetInt64().

|
virtual |
Sets the NULL value in the Object.
| key | The key. |
Definition at line 312 of file Value.cpp.
Referenced by trUtil::JSON::Object::SetNull(), and trUtil::JSON::File::SetNull().

|
virtual |
Sets the Object value in the Object.
| key | The key. | |
| [in,out] | value | The value. |
Definition at line 780 of file Value.cpp.
References trUtil::JSON::Object::GetJSONRoot().
Referenced by trUtil::JSON::Object::SetObject(), and trUtil::JSON::File::SetObject().


|
virtual |
Sets the String value in the Object.
| key | The key. |
| value | The value. |
Definition at line 690 of file Value.cpp.
Referenced by trUtil::JSON::Object::SetString(), and trUtil::JSON::File::SetString().

|
virtual |
Sets the Unsigned Int value in the Object.
| key | The key. |
| value | The value. |
Definition at line 522 of file Value.cpp.
Referenced by trUtil::JSON::Object::SetUInt(), and trUtil::JSON::File::SetUInt().

|
virtual |
Sets the Unsigned Int64 value in the Object.
| key | The key. |
| value | The value. |
Definition at line 606 of file Value.cpp.
Referenced by trUtil::JSON::Object::SetUInt64(), and trUtil::JSON::File::SetUInt64().

| int Value::Size | ( | ) |
Returns the size of the array.
Definition at line 246 of file Value.cpp.
References mValuePtr.
Referenced by trUtil::JSON::Array::Size().

|
protected |
|
protected |
The value pointer.
Definition at line 1322 of file Value.h.
Referenced by Append(), Clear(), GetArray(), GetBool(), GetComment(), GetDouble(), GetFloat(), GetInt(), GetInt64(), GetJsonValue(), GetMemberNames(), GetObject(), GetString(), GetUInt(), GetUInt64(), HasComment(), HasMember(), Index(), IsArray(), IsBool(), IsDouble(), IsEmpty(), IsFloat(), IsInt(), IsInt64(), IsNull(), IsNumber(), IsObject(), IsString(), IsUInt(), IsUInt64(), IsValidIndex(), KeyPresent(), operator const Json::Value &(), operator Json::Value(), operator Json::Value &(), operator Json::Value *(), operator=(), RemoveIndex(), Resize(), SetComment(), Size(), Value(), and ~Value().