58 #if defined(JSON_NO_INT64) 63 #else // if defined(JSON_NO_INT64) 65 #if defined(_MSC_VER) // Microsoft Visual Studio 67 using Int64 = __int64;
69 using UInt64 =
unsigned __int64;
70 #else // if defined(_MSC_VER) // Other platforms, use long long 75 #endif // if defined(_MSC_VER) 80 #endif // if defined(JSON_NO_INT64) 153 Value(Json::Value& value);
216 Value(
const char* value);
226 Value(
const char* begin,
const char* end);
235 Value(
const std::string& value);
281 Json::Value& GetJsonValue();
290 const Json::Value& GetJsonValue()
const;
299 void SetComment(
const std::string& comment);
308 bool HasComment()
const;
317 std::string GetComment()
const;
324 virtual void Clear();
342 void Resize(
int newSize);
353 bool IsValidIndex(
int index)
const;
365 bool RemoveIndex(
int index,
Value *removedVal);
377 Value Index(
int index);
397 bool HasMember(
const std::string& key)
const;
408 virtual bool KeyPresent(
const std::string &key)
const;
417 virtual bool IsNull()
const;
428 virtual bool IsNull(
const int index)
const;
439 virtual bool IsNull(
const std::string& key)
const;
448 virtual void SetNull(
const std::string& key)
const;
457 virtual bool IsEmpty()
const;
468 virtual bool IsEmpty(
const int index)
const;
479 virtual bool IsEmpty(
const std::string& key)
const;
488 virtual void Append(
const Value& val);
497 virtual bool IsBool()
const;
508 virtual bool IsBool(
const int index)
const;
519 virtual bool IsBool(
const std::string& key)
const;
528 virtual bool GetBool()
const;
539 virtual bool GetBool(
const int index)
const;
550 virtual bool GetBool(
const std::string& key)
const;
560 virtual void SetBool(
const std::string& key,
bool value);
569 virtual bool IsNumber()
const;
580 virtual bool IsNumber(
const int index)
const;
591 virtual bool IsNumber(
const std::string& key)
const;
600 virtual bool IsInt()
const;
611 virtual bool IsInt(
const int index)
const;
622 virtual bool IsInt(
const std::string& key)
const;
631 virtual int GetInt()
const;
642 virtual int GetInt(
const int index)
const;
653 virtual int GetInt(
const std::string& key)
const;
663 virtual void SetInt(
const std::string& key,
int value);
672 virtual bool IsDouble()
const;
683 virtual bool IsDouble(
const int index)
const;
694 virtual bool IsDouble(
const std::string& key)
const;
703 virtual double GetDouble()
const;
714 virtual double GetDouble(
const int index)
const;
725 virtual double GetDouble(
const std::string& key)
const;
735 virtual void SetDouble(
const std::string& key,
double value);
744 virtual bool IsUInt()
const;
755 virtual bool IsUInt(
const int index)
const;
766 virtual bool IsUInt(
const std::string& key)
const;
775 virtual unsigned int GetUInt()
const;
786 virtual unsigned int GetUInt(
const int index)
const;
797 virtual unsigned int GetUInt(
const std::string& key)
const;
807 virtual void SetUInt(
const std::string& key,
unsigned int value);
816 virtual bool IsInt64()
const;
827 virtual bool IsInt64(
const int index)
const;
838 virtual bool IsInt64(
const std::string& key)
const;
847 virtual Int64 GetInt64()
const;
858 virtual Int64 GetInt64(
const int index)
const;
869 virtual Int64 GetInt64(
const std::string& key)
const;
879 virtual void SetInt64(
const std::string& key,
Int64 value);
888 virtual bool IsUInt64()
const;
899 virtual bool IsUInt64(
const int index)
const;
910 virtual bool IsUInt64(
const std::string& key)
const;
919 virtual UInt64 GetUInt64()
const;
930 virtual UInt64 GetUInt64(
const int index)
const;
941 virtual UInt64 GetUInt64(
const std::string& key)
const;
951 virtual void SetUInt64(
const std::string& key,
UInt64 value);
960 virtual bool IsFloat()
const;
971 virtual bool IsFloat(
const int index)
const;
982 virtual bool IsFloat(
const std::string& key)
const;
991 virtual float GetFloat()
const;
1002 virtual float GetFloat(
const int index)
const;
1013 virtual float GetFloat(
const std::string& key)
const;
1023 virtual void SetFloat(
const std::string& key,
float value);
1032 virtual bool IsString()
const;
1043 virtual bool IsString(
const int index)
const;
1054 virtual bool IsString(
const std::string& key)
const;
1063 virtual const std::string GetString()
const;
1074 virtual const std::string GetString(
const int index)
const;
1085 virtual const std::string GetString(
const std::string& key)
const;
1095 virtual void SetString(
const std::string& key,
const std::string& value);
1104 virtual bool IsArray()
const;
1115 virtual bool IsArray(
const int index)
const;
1126 virtual bool IsArray(
const std::string& key)
const;
1135 virtual const Array GetArray()
const;
1146 virtual const Array GetArray(
const int index)
const;
1157 virtual const Array GetArray(
const std::string& key)
const;
1167 virtual void SetArray(
const std::string& key,
Array& value);
1176 virtual bool IsObject()
const;
1187 virtual bool IsObject(
const int index)
const;
1198 virtual bool IsObject(
const std::string& key)
const;
1207 virtual const Object GetObject()
const;
1218 virtual const Object GetObject(
const int index)
const;
1229 virtual const Object GetObject(
const std::string& key)
const;
1239 virtual void SetObject(
const std::string& key,
Object& value);
1248 operator Json::Value()
const;
1257 operator Json::Value& ();
1266 operator const Json::Value& ()
const;
1275 operator Json::Value* ();
1320 bool clearInternalVal =
true;
1322 Json::Value* mValuePtr =
nullptr;
array value (ordered list)
ValueType
Type of the value held by a Value object.
Int64 LargestInt
The largest int.
int64_t Int64
The fourth int 6.
UInt64 LargestUInt
The largest u int.
unsigned int UInt
The int.
A class that represents date time utility.
TR_UTIL_EXPORT std::ostream & operator<<(std::ostream &, const Value &root)
OStream operator.
uint64_t UInt64
The fourth u int 6.
std::vector< std::string > Members
The members.