|
|
| Array () |
| | Constructs an empty JSON array.
|
| |
| | Array (const StringPairList &in_strPairs) |
| | Constructs a JSON array from a list of string pairs as an array of strings in the format "key=value". More...
|
| |
| | Array (const Array &in_other) |
| | Copy constructor. More...
|
| |
| | Array (Array &&in_other) noexcept |
| | Move constructor. More...
|
| |
| Array & | operator= (const Array &in_other) |
| | Assignment operator. More...
|
| |
| Array & | operator= (Array &&in_other) noexcept |
| | Move operator. More...
|
| |
| Value | operator[] (size_t in_index) const |
| | Accessor operator. Gets the JSON value at the specified position in the array. More...
|
| |
| Iterator | begin () const |
| | Gets an iterator pointing to the first member of this array. More...
|
| |
| Iterator | end () const |
| | Gets an iterator after the last member of this array. More...
|
| |
| ReverseIterator | rbegin () const |
| | Gets an iterator pointing to the last member of this array, which iterates in the reverse direction. More...
|
| |
| ReverseIterator | rend () const |
| | Gets an iterator before the first member of this array, which can be compared with an other ReverseIterator to determine when reverse iteration has ended. More...
|
| |
|
void | clear () |
| | Clears the JSON array.
|
| |
| Iterator | erase (const Iterator &in_itr) |
| | Erases the member specified by the provided iterator. More...
|
| |
| Iterator | erase (const Iterator &in_first, const Iterator &in_last) |
| | Erases a range of member specified by the provided iterators to the first and last members to erase. More...
|
| |
| Value | getBack () const |
| | Gets the value at the back of the JSON array. More...
|
| |
| Value | getFront () const |
| | Gets the value at the front of the JSON array. More...
|
| |
| Value | getValueAt (size_t in_index) const |
| | Gets the value at the specified index of the JSON array. More...
|
| |
| size_t | getSize () const |
| | Gets the number of values in the JSON array. More...
|
| |
| bool | isEmpty () const |
| | Checks whether the JSON array is empty. More...
|
| |
| Error | parse (const char *in_jsonStr) override |
| | Parses the JSON string into this array. More...
|
| |
| Error | parse (const std::string &in_jsonStr) override |
| | Parses the JSON string into this array. More...
|
| |
| void | push_back (const Value &in_value) |
| | Pushes the value onto the end of the JSON array. More...
|
| |
| void | push_back (bool in_value) |
| | Pushes the value onto the end of the JSON array. More...
|
| |
| void | push_back (double in_value) |
| | Pushes the value onto the end of the JSON array. More...
|
| |
| void | push_back (float in_value) |
| | Pushes the value onto the end of the JSON array. More...
|
| |
| void | push_back (int in_value) |
| | Pushes the value onto the end of the JSON array. More...
|
| |
| void | push_back (int64_t in_value) |
| | Pushes the value onto the end of the JSON array. More...
|
| |
| void | push_back (const char *in_value) |
| | Pushes the value onto the end of the JSON array. More...
|
| |
| void | push_back (const std::string &in_value) |
| | Pushes the value onto the end of the JSON array. More...
|
| |
| void | push_back (unsigned int in_value) |
| | Pushes the value onto the end of the JSON array. More...
|
| |
| void | push_back (uint64_t in_value) |
| | Pushes the value onto the end of the JSON array. More...
|
| |
| void | push_back (const Array &in_value) |
| | Pushes the value onto the end of the JSON array. More...
|
| |
| void | push_back (const Object &in_value) |
| | Pushes the value onto the end of the JSON array. More...
|
| |
| bool | toSetString (std::set< std::string > &out_set) const |
| | Converts this JSON array to a set of strings. More...
|
| |
| StringPairList | toStringPairList () const |
| | Converts this array into a vector of string pairs. Elements of the form "key=value" will be parsed into the pair <"key", "value">. Elements which are not in that format (e.g. "value") will be parsed as <"value", "">. Any elements of the array which are not strings will be skipped. More...
|
| |
| bool | toVectorInt (std::vector< int > &out_set) const |
| | Converts this JSON array to a vector of integers. More...
|
| |
| bool | toVectorString (std::vector< std::string > &out_set) const |
| | Converts this JSON array to a vector of strings. More...
|
| |
|
| Value () |
| | Constructor.
|
| |
| | Value (ValueImplPtr in_valueImpl) |
| | Constructor. Creates a JSON value from a Value::Impl object. More...
|
| |
| | Value (const Value &in_other) |
| | Copy constructor. More...
|
| |
| | Value (Value &&in_other) noexcept |
| | Move constructor. More...
|
| |
| | Value (bool in_value) |
| | Conversion constructor. More...
|
| |
| | Value (double in_value) |
| | Conversion constructor. More...
|
| |
| | Value (float in_value) |
| | Conversion constructor. More...
|
| |
| | Value (int in_value) |
| | Conversion constructor. More...
|
| |
| | Value (int64_t in_value) |
| | Conversion constructor. More...
|
| |
| | Value (const char *in_value) |
| | Conversion constructor. More...
|
| |
| | Value (const std::string &in_value) |
| | Conversion constructor. More...
|
| |
| | Value (unsigned int in_value) |
| | Conversion constructor. More...
|
| |
| | Value (uint64_t in_value) |
| | Conversion constructor. More...
|
| |
|
virtual | ~Value ()=default |
| | Virtual destructor.
|
| |
| Value & | operator= (const Value &in_other) |
| | Assignment operator from Value. More...
|
| |
| Value & | operator= (Value &&in_other) noexcept |
| | Move operator. More...
|
| |
| Value & | operator= (bool in_value) |
| | Assignment operator. More...
|
| |
| Value & | operator= (double in_value) |
| | Assignment operator. More...
|
| |
| Value & | operator= (float in_value) |
| | Assignment operator. More...
|
| |
| Value & | operator= (int in_value) |
| | Assignment operator. More...
|
| |
| Value & | operator= (int64_t in_value) |
| | Assignment operator. More...
|
| |
| Value & | operator= (const char *in_value) |
| | Assignment operator. More...
|
| |
| Value & | operator= (const std::string &in_value) |
| | Assignment operator. More...
|
| |
| Value & | operator= (unsigned int in_value) |
| | Assignment operator. More...
|
| |
| Value & | operator= (uint64_t in_value) |
| | Assignment operator. More...
|
| |
| bool | operator== (const Value &in_other) const |
| | Equality operator. More...
|
| |
| bool | operator!= (const Value &in_other) const |
| | Inequality operator. More...
|
| |
| Value | clone () const |
| | Makes a copy of this JSON value. More...
|
| |
| Error | coerce (const std::string &in_schema, std::vector< std::string > &out_propViolations) |
| | Attempts to coerce a JSON object to conform to the given schema by discarding non-conforming properties. More...
|
| |
| Array | getArray () const |
| | Gets the value as a JSON array. If the call to getType() does not return Type::ARRAY, this method is invalid. More...
|
| |
| bool | getBool () const |
| | Gets the value as a bool. If the call to getType() does not return Type::BOOL, this method is invalid. More...
|
| |
| double | getDouble () const |
| | Gets the value as a double. If the call to getType() does not return Type::DOUBLE, this method is invalid. More...
|
| |
| float | getFloat () const |
| | Gets the value as a float. If the call to getType() does not return Type::FLOAT, this method is invalid. More...
|
| |
| int | getInt () const |
| | Gets the value as an int. If the call to getType() does not return Type::INT, this method is invalid. More...
|
| |
| int64_t | getInt64 () const |
| | Gets the value as an int64. If the call to getType() does not return Type::INT64, this method is invalid. More...
|
| |
| Object | getObject () const |
| | Gets the value as a JSON object. IF the call to getType() does not return Type::OBJECT, this method is invalid. More...
|
| |
| std::string | getString () const |
| | Gets the value as a string. If the call to getType() does not return Type::STRING, this method is invalid. More...
|
| |
| Type | getType () const |
| | Gets the type of this value. More...
|
| |
| unsigned int | getUInt () const |
| | Gets the value as an unsigned int. If the call to getType() does not return Type::UINT, this method is invalid. More...
|
| |
| uint64_t | getUInt64 () const |
| | Gets the value as an uint64. If the call to getType() does not return Type::UINT64, this method is invalid. More...
|
| |
| template<typename T > |
| T | getValue () const |
| | Gets this JSON value as the specified type. More...
|
| |
| bool | isArray () const |
| | Checks whether the value is a JSON array or not. More...
|
| |
| bool | isBool () const |
| | Checks whether the value is a boolean value or not. More...
|
| |
| bool | isDouble () const |
| | Checks whether the value is a double value or not. More...
|
| |
| bool | isFloat () const |
| | Checks whether the value is a float value or not. More...
|
| |
| bool | isInt () const |
| | Checks whether the value is an int 32 value or not. More...
|
| |
| bool | isInt64 () const |
| | Checks whether the value is an int 64 value or not. More...
|
| |
| bool | isObject () const |
| | Checks whether the value is a JSON object or not. More...
|
| |
| bool | isString () const |
| | Checks whether the value is a string value or not. More...
|
| |
| bool | isNull () const |
| | Checks whether the value is null or not. More...
|
| |
| bool | isUInt () const |
| | Checks whether the value is an unsigned int 32 value or not. More...
|
| |
| bool | isUInt64 () const |
| | Checks whether the value is an unsigned int 64 value or not. More...
|
| |
| Error | parseAndValidate (const std::string &in_jsonStr, const std::string &in_schema) |
| | Parses the JSON string and validates it against the schema. More...
|
| |
| Error | setValueAtPointerPath (const std::string &in_pointerPath, const json::Value &in_value) |
| | Sets a value within the current value based on the specified JSON Pointer path. More...
|
| |
| Error | setValueAtPointerPath (const std::string &in_pointerPath, bool in_value) |
| | Sets a value within the current value based on the specified JSON Pointer path. More...
|
| |
| Error | setValueAtPointerPath (const std::string &in_pointerPath, double in_value) |
| | Sets a value within the current value based on the specified JSON Pointer path. More...
|
| |
| Error | setValueAtPointerPath (const std::string &in_pointerPath, float in_value) |
| | Sets a value within the current value based on the specified JSON Pointer path. More...
|
| |
| Error | setValueAtPointerPath (const std::string &in_pointerPath, int in_value) |
| | Sets a value within the current value based on the specified JSON Pointer path. More...
|
| |
| Error | setValueAtPointerPath (const std::string &in_pointerPath, int64_t in_value) |
| | Sets a value within the current value based on the specified JSON Pointer path. More...
|
| |
| Error | setValueAtPointerPath (const std::string &in_pointerPath, const char *in_value) |
| | Sets a value within the current value based on the specified JSON Pointer path. More...
|
| |
| Error | setValueAtPointerPath (const std::string &in_pointerPath, const std::string &in_value) |
| | Sets a value within the current value based on the specified JSON Pointer path. More...
|
| |
| Error | setValueAtPointerPath (const std::string &in_pointerPath, unsigned int in_value) |
| | Sets a value within the current value based on the specified JSON Pointer path. More...
|
| |
| Error | setValueAtPointerPath (const std::string &in_pointerPath, uint64_t in_value) |
| | Sets a value within the current value based on the specified JSON Pointer path. More...
|
| |
| Error | setValueAtPointerPath (const std::string &in_pointerPath, const Array &in_value) |
| | Sets a value within the current value based on the specified JSON Pointer path. More...
|
| |
| Error | setValueAtPointerPath (const std::string &in_pointerPath, const Object &in_value) |
| | Sets a value within the current value based on the specified JSON Pointer path. More...
|
| |
| Error | validate (const std::string &in_schema) const |
| | Validates this JSON value against a schema. More...
|
| |
| std::string | write () const |
| | Writes this value to a string. More...
|
| |
| void | write (std::ostream &io_ostream) const |
| | Writes this value to the specified output stream. More...
|
| |
| std::string | writeFormatted () const |
| | Writes and formats this value to a string. More...
|
| |
| void | writeFormatted (std::ostream &io_ostream) const |
| | Writes and formats this value to the specified output stream. More...
|
| |