53 LOG_E(
"Array Index cannot be negative!");
108 std::cout <<
mRoot << std::endl;
virtual bool IsArray() const
Checks if the value stored is an Array.
virtual UInt64 GetUInt64(int &index) const override
Returns the 64bit Integer value stored at the given index.
virtual bool IsUInt64() const
Checks if the value stored is a 64bit Unsigned Integer.
virtual bool IsBool() const
Checks if the value stored is a Boolean.
void Clear() override
Clears the internal JSON Root node.
virtual void AddBool(const bool &value) override
Adds a Boolean to the Array.
std::string GetComment() const
Returns the internal comment.
int Size()
Returns the size of the array.
virtual double GetDouble(int &index) const override
Returns the Double value stored at the given index.
virtual bool IsInt() const
Checks if the value stored is an Integer.
virtual Array GetArray(int &index) const override
Returns the Array value stored at the given index.
virtual Object GetObject(int &index) const override
Returns the Object value stored at the given index.
void Resize(int newSize)
Change the size of the array.
Value operator[](int index)
Access an array element (zero based index ).
virtual bool IsUInt() const
Checks if the value stored Unsigned Integer.
virtual bool IsFloat() const
Checks if the value stored is a float.
virtual unsigned int GetUInt() const
Returns the Unsigned Integer value.
bool RemoveIndex(int index, Value *removedVal)
Removes a given element of the array.
virtual void PrintJSONRoot() override
Prints out to the screen the whole JSON Root content.
virtual bool IsObject(int &index) const override
Checks if the value stored at the specific index is an Object.
virtual bool IsUInt64(int &index) const override
Checks if the value stored at the specific index is a 64bit Integer.
int Size()
Get the size of the array.
virtual void AddArray(Array &Array) override
Adds the Array to the Array.
virtual bool IsFalse(int &index) const override
Checks if the value stored at the specific index is False.
virtual bool IsArray(int &index) const override
Checks if the value stored at the specific index is an Array.
virtual int GetInt() const
Returns the Integer value.
virtual bool IsNull(int &index) const override
Checks if the value stored at the specific index is a NULL.
bool RemoveIndex(int index, Value *removedVal)
Remove the given Index value.
virtual void AddNull() override
Add a NULL Value to the Array.
virtual bool IsString() const
Checks if the value stored is a String.
virtual void Clear()
Clears the internal JSON Root node.
virtual Int64 GetInt64(int &index) const override
Returns the 64bit Integer value stored at the given index.
virtual Value & GetJSONRoot() override
Returns a reference to the internal JSON Root node.
virtual bool IsDouble(int &index) const override
Checks if the value stored at the specific index is a Double.
virtual void AddInt(const int &value) override
Adds the Integer value to the Array.
int64_t Int64
The fourth int 6.
virtual bool IsInt(int &index) const override
Checks if the value stored at the specific index is an Integer.
virtual double GetDouble() const
Returns the Double value.
virtual bool IsNull() const
Checks if the value stored is a NULL.
virtual bool IsNumber(int &index) const override
Checks if the value stored at the specific index is a Number.
virtual void AddFloat(const float &value) override
Adds the float value to the Array.
virtual bool GetBool() const
Returns the Boolean value.
virtual Value & GetJSONRoot() override
Returns a reference to the internal JSON Root node.
virtual bool GetBool(int &index) const override
Returns the Boolean value stored at the given index.
virtual const std::string GetString(int &index) const override
Returns the String value stored at the given index.
virtual bool IsDouble() const
Checks if the value stored is a Double.
virtual float GetFloat() const
Returns the float value stored.
virtual UInt64 GetUInt64() const
Returns the Unsigned 64bit Integer value.
virtual void Append(const Value &val)
Add a value at the end of the array.
#define LOG_E(msg)
Log an ERROR message.
void SetComment(const std::string &comment)
Sets a comment.
virtual void AddString(const std::string &value) override
Adds the String to the Array.
virtual int GetInt(int &index) const override
Returns the Integer value stored at the given index.
virtual void AddUInt64(const UInt64 &value) override
Adds the 64bit Integer value to the Array.
std::string GetComment() const
Returns the internal comment.
virtual void AddInt64(const Int64 &value) override
Adds the 64bit Integer value to the Array.
virtual void AddUInt(const unsigned int &value) override
Adds the Unsigned Integer value the Array.
virtual const Array GetArray() const
Returns the Array value stored.
virtual bool IsInt64(int &index) const override
Checks if the value stored at the specific index is a 64bit Integer.
virtual float GetFloat(int &index) const override
Returns the float value stored at the given index.
void SetComment(const std::string &comment)
Adds a comment to the internal value.
virtual void AddObject(Object &Object) override
Adds the Object to the Array.
virtual bool IsInt64() const
Checks if the value stored is a 64bit Integer.
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.
virtual const Object GetObject() const
Returns the Object value stored.
virtual unsigned int GetUInt(int &index) const override
Returns the Unsigned Integer value stored at the given index.
virtual void AddDouble(const double &value) override
Adds the Double value to the Array.
bool HasComment() const
Checks if the internal value has a comment.
virtual bool IsString(int &index) const override
Checks if the value stored at the specific index is a String.
virtual bool IsFloat(int &index) const override
Checks if the value stored at the specific index is a float.
virtual bool IsObject() const
Checks if the value stored is an Object.
virtual const std::string GetString() const
Returns the String value stored.
virtual bool IsTrue(int &index) const override
Checks if the value stored at the specific index is True.
virtual bool IsUInt(int &index) const override
Checks if the value stored at the specific index is an Unsigned Integer.
uint64_t UInt64
The fourth u int 6.
virtual Int64 GetInt64() const
Returns the 64bit Integer value.
bool HasComment() const
Checks if the internal value has a comment.
virtual bool IsBool(int &index) const override
Checks if the value stored at the specific index is a Boolean.
void Resize(int newSize)
Change the size of the array to the new passed in size.
virtual bool IsNumber() const
Checks if the value stored is a Number.