OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::json Namespace Reference

Provides helper functions to acces content of json objects and arrays. More...

Functions

OT_CORE_API_EXPORT bool exists (const JsonValue &_value, const char *_member)
 Returns true if the specified object member exists.
 
OT_CORE_API_EXPORT bool exists (const JsonValue &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool exists (const ConstJsonObject &_value, const char *_member)
 Returns true if the specified object member exists.
 
OT_CORE_API_EXPORT bool exists (const ConstJsonObject &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isNull (const JsonValue &_value, const char *_member)
 Returns true if the specified object member is a null.
 
OT_CORE_API_EXPORT bool isNull (const JsonValue &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isNull (const ConstJsonObject &_value, const char *_member)
 Returns true if the specified object member is a null.
 
OT_CORE_API_EXPORT bool isNull (const ConstJsonObject &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isBool (const JsonValue &_value, const char *_member)
 Returns true if the specified object member is a bool.
 
OT_CORE_API_EXPORT bool isBool (const JsonValue &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isBool (const ConstJsonObject &_value, const char *_member)
 Returns true if the specified object member is a bool.
 
OT_CORE_API_EXPORT bool isBool (const ConstJsonObject &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isInt (const JsonValue &_value, const char *_member)
 Returns true if the specified object member is a int.
 
OT_CORE_API_EXPORT bool isInt (const JsonValue &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isInt (const ConstJsonObject &_value, const char *_member)
 Returns true if the specified object member is a int.
 
OT_CORE_API_EXPORT bool isInt (const ConstJsonObject &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isUInt (const JsonValue &_value, const char *_member)
 Returns true if the specified object member is a uInt.
 
OT_CORE_API_EXPORT bool isUInt (const JsonValue &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isUInt (const ConstJsonObject &_value, const char *_member)
 Returns true if the specified object member is a uInt.
 
OT_CORE_API_EXPORT bool isUInt (const ConstJsonObject &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isInt64 (const JsonValue &_value, const char *_member)
 Returns true if the specified object member is a int64.
 
OT_CORE_API_EXPORT bool isInt64 (const JsonValue &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isInt64 (const ConstJsonObject &_value, const char *_member)
 Returns true if the specified object member is a int64.
 
OT_CORE_API_EXPORT bool isInt64 (const ConstJsonObject &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isUInt64 (const JsonValue &_value, const char *_member)
 Returns true if the specified object member is a uInt64.
 
OT_CORE_API_EXPORT bool isUInt64 (const JsonValue &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isUInt64 (const ConstJsonObject &_value, const char *_member)
 Returns true if the specified object member is a uInt64.
 
OT_CORE_API_EXPORT bool isUInt64 (const ConstJsonObject &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isFloat (const JsonValue &_value, const char *_member)
 Returns true if the specified object member is a float.
 
OT_CORE_API_EXPORT bool isFloat (const JsonValue &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isFloat (const ConstJsonObject &_value, const char *_member)
 Returns true if the specified object member is a float.
 
OT_CORE_API_EXPORT bool isFloat (const ConstJsonObject &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isDouble (const JsonValue &_value, const char *_member)
 Returns true if the specified object member is a double.
 
OT_CORE_API_EXPORT bool isDouble (const JsonValue &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isDouble (const ConstJsonObject &_value, const char *_member)
 Returns true if the specified object member is a double.
 
OT_CORE_API_EXPORT bool isDouble (const ConstJsonObject &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isString (const JsonValue &_value, const char *_member)
 Returns true if the specified object member is a string.
 
OT_CORE_API_EXPORT bool isString (const JsonValue &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isString (const ConstJsonObject &_value, const char *_member)
 Returns true if the specified object member is a string.
 
OT_CORE_API_EXPORT bool isString (const ConstJsonObject &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isObject (const JsonValue &_value, const char *_member)
 Returns true if the specified object member is a object.
 
OT_CORE_API_EXPORT bool isObject (const JsonValue &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isObject (const ConstJsonObject &_value, const char *_member)
 Returns true if the specified object member is a object.
 
OT_CORE_API_EXPORT bool isObject (const ConstJsonObject &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isArray (const JsonValue &_value, const char *_member)
 Returns true if the specified object member is a array.
 
OT_CORE_API_EXPORT bool isArray (const JsonValue &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool isArray (const ConstJsonObject &_value, const char *_member)
 Returns true if the specified object member is a array.
 
OT_CORE_API_EXPORT bool isArray (const ConstJsonObject &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool getBool (const JsonValue &_value, const char *_member, bool _default=false)
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT bool getBool (const JsonValue &_value, const std::string &_member, bool _default=false)
 
OT_CORE_API_EXPORT bool getBool (const ConstJsonObject &_value, const char *_member, bool _default=false)
 
OT_CORE_API_EXPORT bool getBool (const ConstJsonObject &_value, const std::string &_member, bool _default=false)
 
OT_CORE_API_EXPORT int32_t getInt (const JsonValue &_value, const char *_member, int32_t _default=0)
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT int32_t getInt (const JsonValue &_value, const std::string &_member, int32_t _default=0)
 
OT_CORE_API_EXPORT int32_t getInt (const ConstJsonObject &_value, const char *_member, int32_t _default=0)
 
OT_CORE_API_EXPORT int32_t getInt (const ConstJsonObject &_value, const std::string &_member, int32_t _default=0)
 
OT_CORE_API_EXPORT uint32_t getUInt (const JsonValue &_value, const char *_member, uint32_t _default=0)
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT uint32_t getUInt (const JsonValue &_value, const std::string &_member, uint32_t _default=0)
 
OT_CORE_API_EXPORT uint32_t getUInt (const ConstJsonObject &_value, const char *_member, uint32_t _default=0)
 
OT_CORE_API_EXPORT uint32_t getUInt (const ConstJsonObject &_value, const std::string &_member, uint32_t _default=0)
 
OT_CORE_API_EXPORT int64_t getInt64 (const JsonValue &_value, const char *_member, int64_t _default=0)
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT int64_t getInt64 (const JsonValue &_value, const std::string &_member, int64_t _default=0)
 
OT_CORE_API_EXPORT int64_t getInt64 (const ConstJsonObject &_value, const char *_member, int64_t _default=0)
 
OT_CORE_API_EXPORT int64_t getInt64 (const ConstJsonObject &_value, const std::string &_member, int64_t _default=0)
 
OT_CORE_API_EXPORT uint64_t getUInt64 (const JsonValue &_value, const char *_member, uint64_t _default=0)
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT uint64_t getUInt64 (const JsonValue &_value, const std::string &_member, uint64_t _default=0)
 
OT_CORE_API_EXPORT uint64_t getUInt64 (const ConstJsonObject &_value, const char *_member, uint64_t _default=0)
 
OT_CORE_API_EXPORT uint64_t getUInt64 (const ConstJsonObject &_value, const std::string &_member, uint64_t _default=0)
 
OT_CORE_API_EXPORT float getFloat (const JsonValue &_value, const char *_member, float _default=0.f)
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT float getFloat (const JsonValue &_value, const std::string &_member, float _default=0.f)
 
OT_CORE_API_EXPORT float getFloat (const ConstJsonObject &_value, const char *_member, float _default=0.f)
 
OT_CORE_API_EXPORT float getFloat (const ConstJsonObject &_value, const std::string &_member, float _default=0.f)
 
OT_CORE_API_EXPORT double getDouble (const JsonValue &_value, const char *_member, double _default=0.)
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT double getDouble (const JsonValue &_value, const std::string &_member, double _default=0.)
 
OT_CORE_API_EXPORT double getDouble (const ConstJsonObject &_value, const char *_member, double _default=0.)
 
OT_CORE_API_EXPORT double getDouble (const ConstJsonObject &_value, const std::string &_member, double _default=0.)
 
OT_CORE_API_EXPORT std::string getString (const JsonValue &_value, const char *_member, const std::string &_default=std::string())
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::string getString (const JsonValue &_value, const std::string &_member, const std::string &_default=std::string())
 
OT_CORE_API_EXPORT std::string getString (const ConstJsonObject &_value, const char *_member, const std::string &_default=std::string())
 
OT_CORE_API_EXPORT std::string getString (const ConstJsonObject &_value, const std::string &_member, const std::string &_default=std::string())
 
OT_CORE_API_EXPORT ConstJsonObject getObject (const JsonValue &_value, const char *_member)
 Check and return the requested value Asserts, logs and throws when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT ConstJsonObject getObject (const JsonValue &_value, const std::string &_member)
 
OT_CORE_API_EXPORT ConstJsonObject getObject (const ConstJsonObject &_value, const char *_member)
 
OT_CORE_API_EXPORT ConstJsonObject getObject (const ConstJsonObject &_value, const std::string &_member)
 
OT_CORE_API_EXPORT ConstJsonArray getArray (const JsonValue &_value, const char *_member)
 Check and return the requested value Asserts, logs and throws when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT ConstJsonArray getArray (const JsonValue &_value, const std::string &_member)
 
OT_CORE_API_EXPORT ConstJsonArray getArray (const ConstJsonObject &_value, const char *_member)
 
OT_CORE_API_EXPORT ConstJsonArray getArray (const ConstJsonObject &_value, const std::string &_member)
 
OT_CORE_API_EXPORT std::list< bool > getBoolList (const JsonValue &_value, const char *_member, const std::list< bool > &_default=std::list< bool >())
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::list< bool > getBoolList (const JsonValue &_value, const std::string &_member, const std::list< bool > &_default=std::list< bool >())
 
OT_CORE_API_EXPORT std::list< bool > getBoolList (const ConstJsonObject &_value, const char *_member, const std::list< bool > &_default=std::list< bool >())
 
OT_CORE_API_EXPORT std::list< bool > getBoolList (const ConstJsonObject &_value, const std::string &_member, const std::list< bool > &_default=std::list< bool >())
 
OT_CORE_API_EXPORT std::list< int32_t > getIntList (const JsonValue &_value, const char *_member, const std::list< int32_t > &_default=std::list< int32_t >())
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::list< int32_t > getIntList (const JsonValue &_value, const std::string &_member, const std::list< int32_t > &_default=std::list< int32_t >())
 
OT_CORE_API_EXPORT std::list< int32_t > getIntList (const ConstJsonObject &_value, const char *_member, const std::list< int32_t > &_default=std::list< int32_t >())
 
OT_CORE_API_EXPORT std::list< int32_t > getIntList (const ConstJsonObject &_value, const std::string &_member, const std::list< int32_t > &_default=std::list< int32_t >())
 
OT_CORE_API_EXPORT std::list< uint32_t > getUIntList (const JsonValue &_value, const char *_member, const std::list< uint32_t > &_default=std::list< uint32_t >())
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::list< uint32_t > getUIntList (const JsonValue &_value, const std::string &_member, const std::list< uint32_t > &_default=std::list< uint32_t >())
 
OT_CORE_API_EXPORT std::list< uint32_t > getUIntList (const ConstJsonObject &_value, const char *_member, const std::list< uint32_t > &_default=std::list< uint32_t >())
 
OT_CORE_API_EXPORT std::list< uint32_t > getUIntList (const ConstJsonObject &_value, const std::string &_member, const std::list< uint32_t > &_default=std::list< uint32_t >())
 
OT_CORE_API_EXPORT std::list< int64_t > getInt64List (const JsonValue &_value, const char *_member, const std::list< int64_t > &_default=std::list< int64_t >())
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::list< int64_t > getInt64List (const JsonValue &_value, const std::string &_member, const std::list< int64_t > &_default=std::list< int64_t >())
 
OT_CORE_API_EXPORT std::list< int64_t > getInt64List (const ConstJsonObject &_value, const char *_member, const std::list< int64_t > &_default=std::list< int64_t >())
 
OT_CORE_API_EXPORT std::list< int64_t > getInt64List (const ConstJsonObject &_value, const std::string &_member, const std::list< int64_t > &_default=std::list< int64_t >())
 
OT_CORE_API_EXPORT std::list< uint64_t > getUInt64List (const JsonValue &_value, const char *_member, const std::list< uint64_t > &_default=std::list< uint64_t >())
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::list< uint64_t > getUInt64List (const JsonValue &_value, const std::string &_member, const std::list< uint64_t > &_default=std::list< uint64_t >())
 
OT_CORE_API_EXPORT std::list< uint64_t > getUInt64List (const ConstJsonObject &_value, const char *_member, const std::list< uint64_t > &_default=std::list< uint64_t >())
 
OT_CORE_API_EXPORT std::list< uint64_t > getUInt64List (const ConstJsonObject &_value, const std::string &_member, const std::list< uint64_t > &_default=std::list< uint64_t >())
 
OT_CORE_API_EXPORT std::list< float > getFloatList (const JsonValue &_value, const char *_member, const std::list< float > &_default=std::list< float >())
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::list< float > getFloatList (const JsonValue &_value, const std::string &_member, const std::list< float > &_default=std::list< float >())
 
OT_CORE_API_EXPORT std::list< float > getFloatList (const ConstJsonObject &_value, const char *_member, const std::list< float > &_default=std::list< float >())
 
OT_CORE_API_EXPORT std::list< float > getFloatList (const ConstJsonObject &_value, const std::string &_member, const std::list< float > &_default=std::list< float >())
 
OT_CORE_API_EXPORT std::list< double > getDoubleList (const JsonValue &_value, const char *_member, const std::list< double > &_default=std::list< double >())
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::list< double > getDoubleList (const JsonValue &_value, const std::string &_member, const std::list< double > &_default=std::list< double >())
 
OT_CORE_API_EXPORT std::list< double > getDoubleList (const ConstJsonObject &_value, const char *_member, const std::list< double > &_default=std::list< double >())
 
OT_CORE_API_EXPORT std::list< double > getDoubleList (const ConstJsonObject &_value, const std::string &_member, const std::list< double > &_default=std::list< double >())
 
OT_CORE_API_EXPORT std::list< std::string > getStringList (const JsonValue &_value, const char *_member, const std::list< std::string > &_default=std::list< std::string >())
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::list< std::string > getStringList (const JsonValue &_value, const std::string &_member, const std::list< std::string > &_default=std::list< std::string >())
 
OT_CORE_API_EXPORT std::list< std::string > getStringList (const ConstJsonObject &_value, const char *_member, const std::list< std::string > &_default=std::list< std::string >())
 
OT_CORE_API_EXPORT std::list< std::string > getStringList (const ConstJsonObject &_value, const std::string &_member, const std::list< std::string > &_default=std::list< std::string >())
 
OT_CORE_API_EXPORT std::list< ConstJsonObjectgetObjectList (const JsonValue &_value, const char *_member)
 Check and return the requested value Asserts, logs and throws when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::list< ConstJsonObjectgetObjectList (const JsonValue &_value, const std::string &_member)
 
OT_CORE_API_EXPORT std::list< ConstJsonObjectgetObjectList (const ConstJsonObject &_value, const char *_member)
 
OT_CORE_API_EXPORT std::list< ConstJsonObjectgetObjectList (const ConstJsonObject &_value, const std::string &_member)
 
OT_CORE_API_EXPORT std::list< ConstJsonArraygetArrayList (const JsonValue &_value, const char *_member)
 Check and return the requested value Asserts, logs and throws when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::list< ConstJsonArraygetArrayList (const JsonValue &_value, const std::string &_member)
 
OT_CORE_API_EXPORT std::list< ConstJsonArraygetArrayList (const ConstJsonObject &_value, const char *_member)
 
OT_CORE_API_EXPORT std::list< ConstJsonArraygetArrayList (const ConstJsonObject &_value, const std::string &_member)
 
OT_CORE_API_EXPORT std::vector< bool > getBoolVector (const JsonValue &_value, const char *_member, const std::vector< bool > &_default=std::vector< bool >())
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::vector< bool > getBoolVector (const JsonValue &_value, const std::string &_member, const std::vector< bool > &_default=std::vector< bool >())
 
OT_CORE_API_EXPORT std::vector< bool > getBoolVector (const ConstJsonObject &_value, const char *_member, const std::vector< bool > &_default=std::vector< bool >())
 
OT_CORE_API_EXPORT std::vector< bool > getBoolVector (const ConstJsonObject &_value, const std::string &_member, const std::vector< bool > &_default=std::vector< bool >())
 
OT_CORE_API_EXPORT std::vector< int32_t > getIntVector (const JsonValue &_value, const char *_member, const std::vector< int32_t > &_default=std::vector< int32_t >())
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::vector< int32_t > getIntVector (const JsonValue &_value, const std::string &_member, const std::vector< int32_t > &_default=std::vector< int32_t >())
 
OT_CORE_API_EXPORT std::vector< int32_t > getIntVector (const ConstJsonObject &_value, const char *_member, const std::vector< int32_t > &_default=std::vector< int32_t >())
 
OT_CORE_API_EXPORT std::vector< int32_t > getIntVector (const ConstJsonObject &_value, const std::string &_member, const std::vector< int32_t > &_default=std::vector< int32_t >())
 
OT_CORE_API_EXPORT std::vector< uint32_t > getUIntVector (const JsonValue &_value, const char *_member, const std::vector< uint32_t > &_default=std::vector< uint32_t >())
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::vector< uint32_t > getUIntVector (const JsonValue &_value, const std::string &_member, const std::vector< uint32_t > &_default=std::vector< uint32_t >())
 
OT_CORE_API_EXPORT std::vector< uint32_t > getUIntVector (const ConstJsonObject &_value, const char *_member, const std::vector< uint32_t > &_default=std::vector< uint32_t >())
 
OT_CORE_API_EXPORT std::vector< uint32_t > getUIntVector (const ConstJsonObject &_value, const std::string &_member, const std::vector< uint32_t > &_default=std::vector< uint32_t >())
 
OT_CORE_API_EXPORT std::vector< int64_t > getInt64Vector (const JsonValue &_value, const char *_member, const std::vector< int64_t > &_default=std::vector< int64_t >())
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::vector< int64_t > getInt64Vector (const JsonValue &_value, const std::string &_member, const std::vector< int64_t > &_default=std::vector< int64_t >())
 
OT_CORE_API_EXPORT std::vector< int64_t > getInt64Vector (const ConstJsonObject &_value, const char *_member, const std::vector< int64_t > &_default=std::vector< int64_t >())
 
OT_CORE_API_EXPORT std::vector< int64_t > getInt64Vector (const ConstJsonObject &_value, const std::string &_member, const std::vector< int64_t > &_default=std::vector< int64_t >())
 
OT_CORE_API_EXPORT std::vector< uint64_t > getUInt64Vector (const JsonValue &_value, const char *_member, const std::vector< uint64_t > &_default=std::vector< uint64_t >())
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::vector< uint64_t > getUInt64Vector (const JsonValue &_value, const std::string &_member, const std::vector< uint64_t > &_default=std::vector< uint64_t >())
 
OT_CORE_API_EXPORT std::vector< uint64_t > getUInt64Vector (const ConstJsonObject &_value, const char *_member, const std::vector< uint64_t > &_default=std::vector< uint64_t >())
 
OT_CORE_API_EXPORT std::vector< uint64_t > getUInt64Vector (const ConstJsonObject &_value, const std::string &_member, const std::vector< uint64_t > &_default=std::vector< uint64_t >())
 
OT_CORE_API_EXPORT std::vector< float > getFloatVector (const JsonValue &_value, const char *_member, const std::vector< float > &_default=std::vector< float >())
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::vector< float > getFloatVector (const JsonValue &_value, const std::string &_member, const std::vector< float > &_default=std::vector< float >())
 
OT_CORE_API_EXPORT std::vector< float > getFloatVector (const ConstJsonObject &_value, const char *_member, const std::vector< float > &_default=std::vector< float >())
 
OT_CORE_API_EXPORT std::vector< float > getFloatVector (const ConstJsonObject &_value, const std::string &_member, const std::vector< float > &_default=std::vector< float >())
 
OT_CORE_API_EXPORT std::vector< double > getDoubleVector (const JsonValue &_value, const char *_member, const std::vector< double > &_default=std::vector< double >())
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::vector< double > getDoubleVector (const JsonValue &_value, const std::string &_member, const std::vector< double > &_default=std::vector< double >())
 
OT_CORE_API_EXPORT std::vector< double > getDoubleVector (const ConstJsonObject &_value, const char *_member, const std::vector< double > &_default=std::vector< double >())
 
OT_CORE_API_EXPORT std::vector< double > getDoubleVector (const ConstJsonObject &_value, const std::string &_member, const std::vector< double > &_default=std::vector< double >())
 
OT_CORE_API_EXPORT std::vector< std::string > getStringVector (const JsonValue &_value, const char *_member, const std::vector< std::string > &_default=std::vector< std::string >())
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::vector< std::string > getStringVector (const JsonValue &_value, const std::string &_member, const std::vector< std::string > &_default=std::vector< std::string >())
 
OT_CORE_API_EXPORT std::vector< std::string > getStringVector (const ConstJsonObject &_value, const char *_member, const std::vector< std::string > &_default=std::vector< std::string >())
 
OT_CORE_API_EXPORT std::vector< std::string > getStringVector (const ConstJsonObject &_value, const std::string &_member, const std::vector< std::string > &_default=std::vector< std::string >())
 
OT_CORE_API_EXPORT std::vector< ConstJsonObjectgetObjectVector (const JsonValue &_value, const char *_member)
 Check and return the requested value Asserts, logs and throws when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::vector< ConstJsonObjectgetObjectVector (const JsonValue &_value, const std::string &_member)
 
OT_CORE_API_EXPORT std::vector< ConstJsonObjectgetObjectVector (const ConstJsonObject &_value, const char *_member)
 
OT_CORE_API_EXPORT std::vector< ConstJsonObjectgetObjectVector (const ConstJsonObject &_value, const std::string &_member)
 
OT_CORE_API_EXPORT std::vector< ConstJsonArraygetArrayVector (const JsonValue &_value, const char *_member)
 Check and return the requested value Asserts, logs and throws when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::vector< ConstJsonArraygetArrayVector (const JsonValue &_value, const std::string &_member)
 
OT_CORE_API_EXPORT std::vector< ConstJsonArraygetArrayVector (const ConstJsonObject &_value, const char *_member)
 
OT_CORE_API_EXPORT std::vector< ConstJsonArraygetArrayVector (const ConstJsonObject &_value, const std::string &_member)
 
OT_CORE_API_EXPORT bool * getBoolArray (const JsonValue &_value, const char *_member, JsonSizeType &_size)
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT bool * getBoolArray (const JsonValue &_value, const std::string &_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT bool * getBoolArray (const ConstJsonObject &_value, const char *_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT bool * getBoolArray (const ConstJsonObject &_value, const std::string &_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT int32_t * getIntArray (const JsonValue &_value, const char *_member, JsonSizeType &_size)
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT int32_t * getIntArray (const JsonValue &_value, const std::string &_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT int32_t * getIntArray (const ConstJsonObject &_value, const char *_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT int32_t * getIntArray (const ConstJsonObject &_value, const std::string &_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT uint32_t * getUIntArray (const JsonValue &_value, const char *_member, JsonSizeType &_size)
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT uint32_t * getUIntArray (const JsonValue &_value, const std::string &_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT uint32_t * getUIntArray (const ConstJsonObject &_value, const char *_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT uint32_t * getUIntArray (const ConstJsonObject &_value, const std::string &_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT int64_t * getInt64Array (const JsonValue &_value, const char *_member, JsonSizeType &_size)
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT int64_t * getInt64Array (const JsonValue &_value, const std::string &_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT int64_t * getInt64Array (const ConstJsonObject &_value, const char *_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT int64_t * getInt64Array (const ConstJsonObject &_value, const std::string &_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT uint64_t * getUInt64Array (const JsonValue &_value, const char *_member, JsonSizeType &_size)
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT uint64_t * getUInt64Array (const JsonValue &_value, const std::string &_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT uint64_t * getUInt64Array (const ConstJsonObject &_value, const char *_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT uint64_t * getUInt64Array (const ConstJsonObject &_value, const std::string &_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT float * getFloatArray (const JsonValue &_value, const char *_member, JsonSizeType &_size)
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT float * getFloatArray (const JsonValue &_value, const std::string &_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT float * getFloatArray (const ConstJsonObject &_value, const char *_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT float * getFloatArray (const ConstJsonObject &_value, const std::string &_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT double * getDoubleArray (const JsonValue &_value, const char *_member, JsonSizeType &_size)
 Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT double * getDoubleArray (const JsonValue &_value, const std::string &_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT double * getDoubleArray (const ConstJsonObject &_value, const char *_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT double * getDoubleArray (const ConstJsonObject &_value, const std::string &_member, JsonSizeType &_size)
 
OT_CORE_API_EXPORT bool isNull (const JsonValue &_value, unsigned int _ix)
 Returns true if the specified array entry is a null.
 
OT_CORE_API_EXPORT bool isNull (const ConstJsonArray &_value, unsigned int _ix)
 Returns true if the specified array entry is a null.
 
OT_CORE_API_EXPORT bool isBool (const JsonValue &_value, unsigned int _ix)
 Returns true if the specified array entry is a bool.
 
OT_CORE_API_EXPORT bool isBool (const ConstJsonArray &_value, unsigned int _ix)
 Returns true if the specified array entry is a bool.
 
OT_CORE_API_EXPORT bool isInt (const JsonValue &_value, unsigned int _ix)
 Returns true if the specified array entry is a int.
 
OT_CORE_API_EXPORT bool isInt (const ConstJsonArray &_value, unsigned int _ix)
 Returns true if the specified array entry is a int.
 
OT_CORE_API_EXPORT bool isUInt (const JsonValue &_value, unsigned int _ix)
 Returns true if the specified array entry is a uInt.
 
OT_CORE_API_EXPORT bool isUInt (const ConstJsonArray &_value, unsigned int _ix)
 Returns true if the specified array entry is a uInt.
 
OT_CORE_API_EXPORT bool isInt64 (const JsonValue &_value, unsigned int _ix)
 Returns true if the specified array entry is a int64.
 
OT_CORE_API_EXPORT bool isInt64 (const ConstJsonArray &_value, unsigned int _ix)
 Returns true if the specified array entry is a int64.
 
OT_CORE_API_EXPORT bool isUInt64 (const JsonValue &_value, unsigned int _ix)
 Returns true if the specified array entry is a uInt64.
 
OT_CORE_API_EXPORT bool isUInt64 (const ConstJsonArray &_value, unsigned int _ix)
 Returns true if the specified array entry is a uInt64.
 
OT_CORE_API_EXPORT bool isFloat (const JsonValue &_value, unsigned int _ix)
 Returns true if the specified array entry is a float.
 
OT_CORE_API_EXPORT bool isFloat (const ConstJsonArray &_value, unsigned int _ix)
 Returns true if the specified array entry is a float.
 
OT_CORE_API_EXPORT bool isDouble (const JsonValue &_value, unsigned int _ix)
 Returns true if the specified array entry is a double.
 
OT_CORE_API_EXPORT bool isDouble (const ConstJsonArray &_value, unsigned int _ix)
 Returns true if the specified array entry is a double.
 
OT_CORE_API_EXPORT bool isString (const JsonValue &_value, unsigned int _ix)
 Returns true if the specified array entry is a string.
 
OT_CORE_API_EXPORT bool isString (const ConstJsonArray &_value, unsigned int _ix)
 Returns true if the specified array entry is a string.
 
OT_CORE_API_EXPORT bool isObject (const JsonValue &_value, unsigned int _ix)
 Returns true if the specified array entry is a object.
 
OT_CORE_API_EXPORT bool isObject (const ConstJsonArray &_value, unsigned int _ix)
 Returns true if the specified array entry is a object.
 
OT_CORE_API_EXPORT bool isArray (const JsonValue &_value, unsigned int _ix)
 Returns true if the specified array entry is a array.
 
OT_CORE_API_EXPORT bool isArray (const ConstJsonArray &_value, unsigned int _ix)
 Returns true if the specified array entry is a array.
 
OT_CORE_API_EXPORT bool getBool (const JsonValue &_value, unsigned int _ix, bool _default=false)
 Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT bool getBool (const ConstJsonArray &_value, unsigned int _ix, bool _default=false)
 
OT_CORE_API_EXPORT int32_t getInt (const JsonValue &_value, unsigned int _ix, int32_t _default=0)
 Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT int32_t getInt (const ConstJsonArray &_value, unsigned int _ix, int32_t _default=0)
 
OT_CORE_API_EXPORT uint32_t getUInt (const JsonValue &_value, unsigned int _ix, uint32_t _default=0)
 Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT uint32_t getUInt (const ConstJsonArray &_value, unsigned int _ix, uint32_t _default=0)
 
OT_CORE_API_EXPORT int64_t getInt64 (const JsonValue &_value, unsigned int _ix, int64_t _default=0)
 Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT int64_t getInt64 (const ConstJsonArray &_value, unsigned int _ix, int64_t _default=0)
 
OT_CORE_API_EXPORT uint64_t getUInt64 (const JsonValue &_value, unsigned int _ix, uint64_t _default=0)
 Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT uint64_t getUInt64 (const ConstJsonArray &_value, unsigned int _ix, uint64_t _default=0)
 
OT_CORE_API_EXPORT float getFloat (const JsonValue &_value, unsigned int _ix, float _default=0.f)
 Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT float getFloat (const ConstJsonArray &_value, unsigned int _ix, float _default=0.f)
 
OT_CORE_API_EXPORT double getDouble (const JsonValue &_value, unsigned int _ix, double _default=0.)
 Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT double getDouble (const ConstJsonArray &_value, unsigned int _ix, double _default=0.)
 
OT_CORE_API_EXPORT std::string getString (const JsonValue &_value, unsigned int _ix, const std::string &_default=std::string())
 Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::string getString (const ConstJsonArray &_value, unsigned int _ix, const std::string &_default=std::string())
 
OT_CORE_API_EXPORT ConstJsonObject getObject (const JsonValue &_value, unsigned int _ix)
 Check and return the requested value from the provided array value Asserts, logs and throws when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT ConstJsonObject getObject (const ConstJsonArray &_value, unsigned int _ix)
 
OT_CORE_API_EXPORT ConstJsonArray getArray (const JsonValue &_value, unsigned int _ix)
 Check and return the requested value from the provided array value Asserts, logs and throws when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT ConstJsonArray getArray (const ConstJsonArray &_value, unsigned int _ix)
 
OT_CORE_API_EXPORT std::list< int32_t > getIntList (const JsonValue &_value, unsigned int _ix, const std::list< int32_t > &_default=std::list< int32_t >())
 Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::list< int32_t > getIntList (const ConstJsonArray &_value, unsigned int _ix, const std::list< int32_t > &_default=std::list< int32_t >())
 
OT_CORE_API_EXPORT std::list< uint32_t > getUIntList (const JsonValue &_value, unsigned int _ix, const std::list< uint32_t > &_default=std::list< uint32_t >())
 Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::list< uint32_t > getUIntList (const ConstJsonArray &_value, unsigned int _ix, const std::list< uint32_t > &_default=std::list< uint32_t >())
 
OT_CORE_API_EXPORT std::list< int64_t > getInt64List (const JsonValue &_value, unsigned int _ix, const std::list< int64_t > &_default=std::list< int64_t >())
 Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::list< int64_t > getInt64List (const ConstJsonArray &_value, unsigned int _ix, const std::list< int64_t > &_default=std::list< int64_t >())
 
OT_CORE_API_EXPORT std::list< uint64_t > getUInt64List (const JsonValue &_value, unsigned int _ix, const std::list< uint64_t > &_default=std::list< uint64_t >())
 Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::list< uint64_t > getUInt64List (const ConstJsonArray &_value, unsigned int _ix, const std::list< uint64_t > &_default=std::list< uint64_t >())
 
OT_CORE_API_EXPORT std::list< std::string > getStringList (const JsonValue &_value, unsigned int _ix, const std::list< std::string > &_default=std::list< std::string >())
 Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::list< std::string > getStringList (const ConstJsonArray &_value, unsigned int _ix, const std::list< std::string > &_default=std::list< std::string >())
 
OT_CORE_API_EXPORT std::list< ConstJsonObjectgetObjectList (const JsonValue &_value, unsigned int _ix)
 Check and return the requested value from the provided array value Asserts, logs and throws when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::list< ConstJsonObjectgetObjectList (const ConstJsonArray &_value, unsigned int _ix)
 
OT_CORE_API_EXPORT std::list< ConstJsonArraygetArrayList (const JsonValue &_value, unsigned int _ix)
 Check and return the requested value from the provided array value Asserts, logs and throws when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::list< ConstJsonArraygetArrayList (const ConstJsonArray &_value, unsigned int _ix)
 
OT_CORE_API_EXPORT std::vector< int32_t > getIntVector (const JsonValue &_value, unsigned int _ix, const std::vector< int32_t > &_default=std::vector< int32_t >())
 Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::vector< int32_t > getIntVector (const ConstJsonArray &_value, unsigned int _ix, const std::vector< int32_t > &_default=std::vector< int32_t >())
 
OT_CORE_API_EXPORT std::vector< uint32_t > getUIntVector (const JsonValue &_value, unsigned int _ix, const std::vector< uint32_t > &_default=std::vector< uint32_t >())
 Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::vector< uint32_t > getUIntVector (const ConstJsonArray &_value, unsigned int _ix, const std::vector< uint32_t > &_default=std::vector< uint32_t >())
 
OT_CORE_API_EXPORT std::vector< int64_t > getInt64Vector (const JsonValue &_value, unsigned int _ix, const std::vector< int64_t > &_default=std::vector< int64_t >())
 Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::vector< int64_t > getInt64Vector (const ConstJsonArray &_value, unsigned int _ix, const std::vector< int64_t > &_default=std::vector< int64_t >())
 
OT_CORE_API_EXPORT std::vector< uint64_t > getUInt64Vector (const JsonValue &_value, unsigned int _ix, const std::vector< uint64_t > &_default=std::vector< uint64_t >())
 Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::vector< uint64_t > getUInt64Vector (const ConstJsonArray &_value, unsigned int _ix, const std::vector< uint64_t > &_default=std::vector< uint64_t >())
 
OT_CORE_API_EXPORT std::vector< std::string > getStringVector (const JsonValue &_value, unsigned int _ix, const std::vector< std::string > &_default=std::vector< std::string >())
 Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::vector< std::string > getStringVector (const ConstJsonArray &_value, unsigned int _ix, const std::vector< std::string > &_default=std::vector< std::string >())
 
OT_CORE_API_EXPORT std::vector< ConstJsonObjectgetObjectVector (const JsonValue &_value, unsigned int _ix)
 Check and return the requested value from the provided array value Asserts, logs and throws when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::vector< ConstJsonObjectgetObjectVector (const ConstJsonArray &_value, unsigned int _ix)
 
OT_CORE_API_EXPORT std::vector< ConstJsonArraygetArrayVector (const JsonValue &_value, unsigned int _ix)
 Check and return the requested value from the provided array value Asserts, logs and throws when the provided member does not exist or is invalid type.
 
OT_CORE_API_EXPORT std::vector< ConstJsonArraygetArrayVector (const ConstJsonArray &_value, unsigned int _ix)
 

Detailed Description

Provides helper functions to acces content of json objects and arrays.

Function Documentation

◆ exists() [1/4]

bool ot::json::exists ( const ConstJsonObject & _value,
const char * _member )

Returns true if the specified object member exists.

◆ exists() [2/4]

bool ot::json::exists ( const ConstJsonObject & _value,
const std::string & _member )

◆ exists() [3/4]

bool ot::json::exists ( const JsonValue & _value,
const char * _member )

Returns true if the specified object member exists.

◆ exists() [4/4]

bool ot::json::exists ( const JsonValue & _value,
const std::string & _member )

◆ getArray() [1/6]

ot::ConstJsonArray ot::json::getArray ( const ConstJsonArray & _value,
unsigned int _ix )

◆ getArray() [2/6]

ot::ConstJsonArray ot::json::getArray ( const ConstJsonObject & _value,
const char * _member )

◆ getArray() [3/6]

ot::ConstJsonArray ot::json::getArray ( const ConstJsonObject & _value,
const std::string & _member )

◆ getArray() [4/6]

ot::ConstJsonArray ot::json::getArray ( const JsonValue & _value,
const char * _member )

Check and return the requested value Asserts, logs and throws when the provided member does not exist or is invalid type.

◆ getArray() [5/6]

ot::ConstJsonArray ot::json::getArray ( const JsonValue & _value,
const std::string & _member )

◆ getArray() [6/6]

ot::ConstJsonArray ot::json::getArray ( const JsonValue & _value,
unsigned int _ix )

Check and return the requested value from the provided array value Asserts, logs and throws when the provided member does not exist or is invalid type.

◆ getArrayList() [1/6]

std::list< ot::ConstJsonArray > ot::json::getArrayList ( const ConstJsonArray & _value,
unsigned int _ix )

◆ getArrayList() [2/6]

std::list< ot::ConstJsonArray > ot::json::getArrayList ( const ConstJsonObject & _value,
const char * _member )

◆ getArrayList() [3/6]

std::list< ot::ConstJsonArray > ot::json::getArrayList ( const ConstJsonObject & _value,
const std::string & _member )

◆ getArrayList() [4/6]

std::list< ot::ConstJsonArray > ot::json::getArrayList ( const JsonValue & _value,
const char * _member )

Check and return the requested value Asserts, logs and throws when the provided member does not exist or is invalid type.

◆ getArrayList() [5/6]

std::list< ot::ConstJsonArray > ot::json::getArrayList ( const JsonValue & _value,
const std::string & _member )

◆ getArrayList() [6/6]

std::list< ot::ConstJsonArray > ot::json::getArrayList ( const JsonValue & _value,
unsigned int _ix )

Check and return the requested value from the provided array value Asserts, logs and throws when the provided member does not exist or is invalid type.

◆ getArrayVector() [1/6]

std::vector< ot::ConstJsonArray > ot::json::getArrayVector ( const ConstJsonArray & _value,
unsigned int _ix )

◆ getArrayVector() [2/6]

std::vector< ot::ConstJsonArray > ot::json::getArrayVector ( const ConstJsonObject & _value,
const char * _member )

◆ getArrayVector() [3/6]

std::vector< ot::ConstJsonArray > ot::json::getArrayVector ( const ConstJsonObject & _value,
const std::string & _member )

◆ getArrayVector() [4/6]

std::vector< ot::ConstJsonArray > ot::json::getArrayVector ( const JsonValue & _value,
const char * _member )

Check and return the requested value Asserts, logs and throws when the provided member does not exist or is invalid type.

◆ getArrayVector() [5/6]

std::vector< ot::ConstJsonArray > ot::json::getArrayVector ( const JsonValue & _value,
const std::string & _member )

◆ getArrayVector() [6/6]

std::vector< ot::ConstJsonArray > ot::json::getArrayVector ( const JsonValue & _value,
unsigned int _ix )

Check and return the requested value from the provided array value Asserts, logs and throws when the provided member does not exist or is invalid type.

◆ getBool() [1/6]

bool ot::json::getBool ( const ConstJsonArray & _value,
unsigned int _ix,
bool _default = false )

◆ getBool() [2/6]

bool ot::json::getBool ( const ConstJsonObject & _value,
const char * _member,
bool _default = false )

◆ getBool() [3/6]

bool ot::json::getBool ( const ConstJsonObject & _value,
const std::string & _member,
bool _default = false )

◆ getBool() [4/6]

bool ot::json::getBool ( const JsonValue & _value,
const char * _member,
bool _default = false )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getBool() [5/6]

bool ot::json::getBool ( const JsonValue & _value,
const std::string & _member,
bool _default = false )

◆ getBool() [6/6]

bool ot::json::getBool ( const JsonValue & _value,
unsigned int _ix,
bool _default = false )

Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getBoolArray() [1/4]

bool * ot::json::getBoolArray ( const ConstJsonObject & _value,
const char * _member,
JsonSizeType & _size )

◆ getBoolArray() [2/4]

bool * ot::json::getBoolArray ( const ConstJsonObject & _value,
const std::string & _member,
JsonSizeType & _size )

◆ getBoolArray() [3/4]

bool * ot::json::getBoolArray ( const JsonValue & _value,
const char * _member,
JsonSizeType & _size )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getBoolArray() [4/4]

bool * ot::json::getBoolArray ( const JsonValue & _value,
const std::string & _member,
JsonSizeType & _size )

◆ getBoolList() [1/4]

std::list< bool > ot::json::getBoolList ( const ConstJsonObject & _value,
const char * _member,
const std::list< bool > & _default = std::list<bool>() )

◆ getBoolList() [2/4]

std::list< bool > ot::json::getBoolList ( const ConstJsonObject & _value,
const std::string & _member,
const std::list< bool > & _default = std::list<bool>() )

◆ getBoolList() [3/4]

std::list< bool > ot::json::getBoolList ( const JsonValue & _value,
const char * _member,
const std::list< bool > & _default = std::list<bool>() )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getBoolList() [4/4]

std::list< bool > ot::json::getBoolList ( const JsonValue & _value,
const std::string & _member,
const std::list< bool > & _default = std::list<bool>() )

◆ getBoolVector() [1/4]

std::vector< bool > ot::json::getBoolVector ( const ConstJsonObject & _value,
const char * _member,
const std::vector< bool > & _default = std::vector<bool>() )

◆ getBoolVector() [2/4]

std::vector< bool > ot::json::getBoolVector ( const ConstJsonObject & _value,
const std::string & _member,
const std::vector< bool > & _default = std::vector<bool>() )

◆ getBoolVector() [3/4]

std::vector< bool > ot::json::getBoolVector ( const JsonValue & _value,
const char * _member,
const std::vector< bool > & _default = std::vector<bool>() )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getBoolVector() [4/4]

std::vector< bool > ot::json::getBoolVector ( const JsonValue & _value,
const std::string & _member,
const std::vector< bool > & _default = std::vector<bool>() )

◆ getDouble() [1/6]

double ot::json::getDouble ( const ConstJsonArray & _value,
unsigned int _ix,
double _default = 0. )

◆ getDouble() [2/6]

double ot::json::getDouble ( const ConstJsonObject & _value,
const char * _member,
double _default = 0. )

◆ getDouble() [3/6]

double ot::json::getDouble ( const ConstJsonObject & _value,
const std::string & _member,
double _default = 0. )

◆ getDouble() [4/6]

double ot::json::getDouble ( const JsonValue & _value,
const char * _member,
double _default = 0. )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getDouble() [5/6]

double ot::json::getDouble ( const JsonValue & _value,
const std::string & _member,
double _default = 0. )

◆ getDouble() [6/6]

double ot::json::getDouble ( const JsonValue & _value,
unsigned int _ix,
double _default = 0. )

Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getDoubleArray() [1/4]

double * ot::json::getDoubleArray ( const ConstJsonObject & _value,
const char * _member,
JsonSizeType & _size )

◆ getDoubleArray() [2/4]

double * ot::json::getDoubleArray ( const ConstJsonObject & _value,
const std::string & _member,
JsonSizeType & _size )

◆ getDoubleArray() [3/4]

double * ot::json::getDoubleArray ( const JsonValue & _value,
const char * _member,
JsonSizeType & _size )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getDoubleArray() [4/4]

double * ot::json::getDoubleArray ( const JsonValue & _value,
const std::string & _member,
JsonSizeType & _size )

◆ getDoubleList() [1/4]

std::list< double > ot::json::getDoubleList ( const ConstJsonObject & _value,
const char * _member,
const std::list< double > & _default = std::list<double>() )

◆ getDoubleList() [2/4]

std::list< double > ot::json::getDoubleList ( const ConstJsonObject & _value,
const std::string & _member,
const std::list< double > & _default = std::list<double>() )

◆ getDoubleList() [3/4]

std::list< double > ot::json::getDoubleList ( const JsonValue & _value,
const char * _member,
const std::list< double > & _default = std::list<double>() )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getDoubleList() [4/4]

std::list< double > ot::json::getDoubleList ( const JsonValue & _value,
const std::string & _member,
const std::list< double > & _default = std::list<double>() )

◆ getDoubleVector() [1/4]

std::vector< double > ot::json::getDoubleVector ( const ConstJsonObject & _value,
const char * _member,
const std::vector< double > & _default = std::vector<double>() )

◆ getDoubleVector() [2/4]

std::vector< double > ot::json::getDoubleVector ( const ConstJsonObject & _value,
const std::string & _member,
const std::vector< double > & _default = std::vector<double>() )

◆ getDoubleVector() [3/4]

std::vector< double > ot::json::getDoubleVector ( const JsonValue & _value,
const char * _member,
const std::vector< double > & _default = std::vector<double>() )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getDoubleVector() [4/4]

std::vector< double > ot::json::getDoubleVector ( const JsonValue & _value,
const std::string & _member,
const std::vector< double > & _default = std::vector<double>() )

◆ getFloat() [1/6]

float ot::json::getFloat ( const ConstJsonArray & _value,
unsigned int _ix,
float _default = 0.f )

◆ getFloat() [2/6]

float ot::json::getFloat ( const ConstJsonObject & _value,
const char * _member,
float _default = 0.f )

◆ getFloat() [3/6]

float ot::json::getFloat ( const ConstJsonObject & _value,
const std::string & _member,
float _default = 0.f )

◆ getFloat() [4/6]

float ot::json::getFloat ( const JsonValue & _value,
const char * _member,
float _default = 0.f )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getFloat() [5/6]

float ot::json::getFloat ( const JsonValue & _value,
const std::string & _member,
float _default = 0.f )

◆ getFloat() [6/6]

float ot::json::getFloat ( const JsonValue & _value,
unsigned int _ix,
float _default = 0.f )

Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getFloatArray() [1/4]

float * ot::json::getFloatArray ( const ConstJsonObject & _value,
const char * _member,
JsonSizeType & _size )

◆ getFloatArray() [2/4]

float * ot::json::getFloatArray ( const ConstJsonObject & _value,
const std::string & _member,
JsonSizeType & _size )

◆ getFloatArray() [3/4]

float * ot::json::getFloatArray ( const JsonValue & _value,
const char * _member,
JsonSizeType & _size )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getFloatArray() [4/4]

float * ot::json::getFloatArray ( const JsonValue & _value,
const std::string & _member,
JsonSizeType & _size )

◆ getFloatList() [1/4]

std::list< float > ot::json::getFloatList ( const ConstJsonObject & _value,
const char * _member,
const std::list< float > & _default = std::list<float>() )

◆ getFloatList() [2/4]

std::list< float > ot::json::getFloatList ( const ConstJsonObject & _value,
const std::string & _member,
const std::list< float > & _default = std::list<float>() )

◆ getFloatList() [3/4]

std::list< float > ot::json::getFloatList ( const JsonValue & _value,
const char * _member,
const std::list< float > & _default = std::list<float>() )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getFloatList() [4/4]

std::list< float > ot::json::getFloatList ( const JsonValue & _value,
const std::string & _member,
const std::list< float > & _default = std::list<float>() )

◆ getFloatVector() [1/4]

std::vector< float > ot::json::getFloatVector ( const ConstJsonObject & _value,
const char * _member,
const std::vector< float > & _default = std::vector<float>() )

◆ getFloatVector() [2/4]

std::vector< float > ot::json::getFloatVector ( const ConstJsonObject & _value,
const std::string & _member,
const std::vector< float > & _default = std::vector<float>() )

◆ getFloatVector() [3/4]

std::vector< float > ot::json::getFloatVector ( const JsonValue & _value,
const char * _member,
const std::vector< float > & _default = std::vector<float>() )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getFloatVector() [4/4]

std::vector< float > ot::json::getFloatVector ( const JsonValue & _value,
const std::string & _member,
const std::vector< float > & _default = std::vector<float>() )

◆ getInt() [1/6]

int32_t ot::json::getInt ( const ConstJsonArray & _value,
unsigned int _ix,
int32_t _default = 0 )

◆ getInt() [2/6]

int32_t ot::json::getInt ( const ConstJsonObject & _value,
const char * _member,
int32_t _default = 0 )

◆ getInt() [3/6]

int32_t ot::json::getInt ( const ConstJsonObject & _value,
const std::string & _member,
int32_t _default = 0 )

◆ getInt() [4/6]

int32_t ot::json::getInt ( const JsonValue & _value,
const char * _member,
int32_t _default = 0 )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getInt() [5/6]

int32_t ot::json::getInt ( const JsonValue & _value,
const std::string & _member,
int32_t _default = 0 )

◆ getInt() [6/6]

int32_t ot::json::getInt ( const JsonValue & _value,
unsigned int _ix,
int32_t _default = 0 )

Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getInt64() [1/6]

int64_t ot::json::getInt64 ( const ConstJsonArray & _value,
unsigned int _ix,
int64_t _default = 0 )

◆ getInt64() [2/6]

int64_t ot::json::getInt64 ( const ConstJsonObject & _value,
const char * _member,
int64_t _default = 0 )

◆ getInt64() [3/6]

int64_t ot::json::getInt64 ( const ConstJsonObject & _value,
const std::string & _member,
int64_t _default = 0 )

◆ getInt64() [4/6]

int64_t ot::json::getInt64 ( const JsonValue & _value,
const char * _member,
int64_t _default = 0 )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getInt64() [5/6]

int64_t ot::json::getInt64 ( const JsonValue & _value,
const std::string & _member,
int64_t _default = 0 )

◆ getInt64() [6/6]

int64_t ot::json::getInt64 ( const JsonValue & _value,
unsigned int _ix,
int64_t _default = 0 )

Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getInt64Array() [1/4]

int64_t * ot::json::getInt64Array ( const ConstJsonObject & _value,
const char * _member,
JsonSizeType & _size )

◆ getInt64Array() [2/4]

int64_t * ot::json::getInt64Array ( const ConstJsonObject & _value,
const std::string & _member,
JsonSizeType & _size )

◆ getInt64Array() [3/4]

int64_t * ot::json::getInt64Array ( const JsonValue & _value,
const char * _member,
JsonSizeType & _size )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getInt64Array() [4/4]

int64_t * ot::json::getInt64Array ( const JsonValue & _value,
const std::string & _member,
JsonSizeType & _size )

◆ getInt64List() [1/6]

std::list< int64_t > ot::json::getInt64List ( const ConstJsonArray & _value,
unsigned int _ix,
const std::list< int64_t > & _default = std::list<int64_t>() )

◆ getInt64List() [2/6]

std::list< int64_t > ot::json::getInt64List ( const ConstJsonObject & _value,
const char * _member,
const std::list< int64_t > & _default = std::list<int64_t>() )

◆ getInt64List() [3/6]

std::list< int64_t > ot::json::getInt64List ( const ConstJsonObject & _value,
const std::string & _member,
const std::list< int64_t > & _default = std::list<int64_t>() )

◆ getInt64List() [4/6]

std::list< int64_t > ot::json::getInt64List ( const JsonValue & _value,
const char * _member,
const std::list< int64_t > & _default = std::list<int64_t>() )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getInt64List() [5/6]

std::list< int64_t > ot::json::getInt64List ( const JsonValue & _value,
const std::string & _member,
const std::list< int64_t > & _default = std::list<int64_t>() )

◆ getInt64List() [6/6]

std::list< int64_t > ot::json::getInt64List ( const JsonValue & _value,
unsigned int _ix,
const std::list< int64_t > & _default = std::list<int64_t>() )

Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getInt64Vector() [1/6]

std::vector< int64_t > ot::json::getInt64Vector ( const ConstJsonArray & _value,
unsigned int _ix,
const std::vector< int64_t > & _default = std::vector<int64_t>() )

◆ getInt64Vector() [2/6]

std::vector< int64_t > ot::json::getInt64Vector ( const ConstJsonObject & _value,
const char * _member,
const std::vector< int64_t > & _default = std::vector<int64_t>() )

◆ getInt64Vector() [3/6]

std::vector< int64_t > ot::json::getInt64Vector ( const ConstJsonObject & _value,
const std::string & _member,
const std::vector< int64_t > & _default = std::vector<int64_t>() )

◆ getInt64Vector() [4/6]

std::vector< int64_t > ot::json::getInt64Vector ( const JsonValue & _value,
const char * _member,
const std::vector< int64_t > & _default = std::vector<int64_t>() )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getInt64Vector() [5/6]

std::vector< int64_t > ot::json::getInt64Vector ( const JsonValue & _value,
const std::string & _member,
const std::vector< int64_t > & _default = std::vector<int64_t>() )

◆ getInt64Vector() [6/6]

std::vector< int64_t > ot::json::getInt64Vector ( const JsonValue & _value,
unsigned int _ix,
const std::vector< int64_t > & _default = std::vector<int64_t>() )

Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getIntArray() [1/4]

int32_t * ot::json::getIntArray ( const ConstJsonObject & _value,
const char * _member,
JsonSizeType & _size )

◆ getIntArray() [2/4]

int32_t * ot::json::getIntArray ( const ConstJsonObject & _value,
const std::string & _member,
JsonSizeType & _size )

◆ getIntArray() [3/4]

int32_t * ot::json::getIntArray ( const JsonValue & _value,
const char * _member,
JsonSizeType & _size )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getIntArray() [4/4]

int32_t * ot::json::getIntArray ( const JsonValue & _value,
const std::string & _member,
JsonSizeType & _size )

◆ getIntList() [1/6]

std::list< int32_t > ot::json::getIntList ( const ConstJsonArray & _value,
unsigned int _ix,
const std::list< int32_t > & _default = std::list<int32_t>() )

◆ getIntList() [2/6]

std::list< int32_t > ot::json::getIntList ( const ConstJsonObject & _value,
const char * _member,
const std::list< int32_t > & _default = std::list<int32_t>() )

◆ getIntList() [3/6]

std::list< int32_t > ot::json::getIntList ( const ConstJsonObject & _value,
const std::string & _member,
const std::list< int32_t > & _default = std::list<int32_t>() )

◆ getIntList() [4/6]

std::list< int32_t > ot::json::getIntList ( const JsonValue & _value,
const char * _member,
const std::list< int32_t > & _default = std::list<int32_t>() )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getIntList() [5/6]

std::list< int32_t > ot::json::getIntList ( const JsonValue & _value,
const std::string & _member,
const std::list< int32_t > & _default = std::list<int32_t>() )

◆ getIntList() [6/6]

std::list< int32_t > ot::json::getIntList ( const JsonValue & _value,
unsigned int _ix,
const std::list< int32_t > & _default = std::list<int32_t>() )

Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getIntVector() [1/6]

std::vector< int32_t > ot::json::getIntVector ( const ConstJsonArray & _value,
unsigned int _ix,
const std::vector< int32_t > & _default = std::vector<int32_t>() )

◆ getIntVector() [2/6]

std::vector< int32_t > ot::json::getIntVector ( const ConstJsonObject & _value,
const char * _member,
const std::vector< int32_t > & _default = std::vector<int32_t>() )

◆ getIntVector() [3/6]

std::vector< int32_t > ot::json::getIntVector ( const ConstJsonObject & _value,
const std::string & _member,
const std::vector< int32_t > & _default = std::vector<int32_t>() )

◆ getIntVector() [4/6]

std::vector< int32_t > ot::json::getIntVector ( const JsonValue & _value,
const char * _member,
const std::vector< int32_t > & _default = std::vector<int32_t>() )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getIntVector() [5/6]

std::vector< int32_t > ot::json::getIntVector ( const JsonValue & _value,
const std::string & _member,
const std::vector< int32_t > & _default = std::vector<int32_t>() )

◆ getIntVector() [6/6]

std::vector< int32_t > ot::json::getIntVector ( const JsonValue & _value,
unsigned int _ix,
const std::vector< int32_t > & _default = std::vector<int32_t>() )

Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getObject() [1/6]

ot::ConstJsonObject ot::json::getObject ( const ConstJsonArray & _value,
unsigned int _ix )

◆ getObject() [2/6]

ot::ConstJsonObject ot::json::getObject ( const ConstJsonObject & _value,
const char * _member )

◆ getObject() [3/6]

ot::ConstJsonObject ot::json::getObject ( const ConstJsonObject & _value,
const std::string & _member )

◆ getObject() [4/6]

ot::ConstJsonObject ot::json::getObject ( const JsonValue & _value,
const char * _member )

Check and return the requested value Asserts, logs and throws when the provided member does not exist or is invalid type.

◆ getObject() [5/6]

ot::ConstJsonObject ot::json::getObject ( const JsonValue & _value,
const std::string & _member )

◆ getObject() [6/6]

ot::ConstJsonObject ot::json::getObject ( const JsonValue & _value,
unsigned int _ix )

Check and return the requested value from the provided array value Asserts, logs and throws when the provided member does not exist or is invalid type.

◆ getObjectList() [1/6]

std::list< ot::ConstJsonObject > ot::json::getObjectList ( const ConstJsonArray & _value,
unsigned int _ix )

◆ getObjectList() [2/6]

std::list< ot::ConstJsonObject > ot::json::getObjectList ( const ConstJsonObject & _value,
const char * _member )

◆ getObjectList() [3/6]

std::list< ot::ConstJsonObject > ot::json::getObjectList ( const ConstJsonObject & _value,
const std::string & _member )

◆ getObjectList() [4/6]

std::list< ot::ConstJsonObject > ot::json::getObjectList ( const JsonValue & _value,
const char * _member )

Check and return the requested value Asserts, logs and throws when the provided member does not exist or is invalid type.

◆ getObjectList() [5/6]

std::list< ot::ConstJsonObject > ot::json::getObjectList ( const JsonValue & _value,
const std::string & _member )

◆ getObjectList() [6/6]

std::list< ot::ConstJsonObject > ot::json::getObjectList ( const JsonValue & _value,
unsigned int _ix )

Check and return the requested value from the provided array value Asserts, logs and throws when the provided member does not exist or is invalid type.

◆ getObjectVector() [1/6]

std::vector< ot::ConstJsonObject > ot::json::getObjectVector ( const ConstJsonArray & _value,
unsigned int _ix )

◆ getObjectVector() [2/6]

std::vector< ot::ConstJsonObject > ot::json::getObjectVector ( const ConstJsonObject & _value,
const char * _member )

◆ getObjectVector() [3/6]

std::vector< ot::ConstJsonObject > ot::json::getObjectVector ( const ConstJsonObject & _value,
const std::string & _member )

◆ getObjectVector() [4/6]

std::vector< ot::ConstJsonObject > ot::json::getObjectVector ( const JsonValue & _value,
const char * _member )

Check and return the requested value Asserts, logs and throws when the provided member does not exist or is invalid type.

◆ getObjectVector() [5/6]

std::vector< ot::ConstJsonObject > ot::json::getObjectVector ( const JsonValue & _value,
const std::string & _member )

◆ getObjectVector() [6/6]

std::vector< ot::ConstJsonObject > ot::json::getObjectVector ( const JsonValue & _value,
unsigned int _ix )

Check and return the requested value from the provided array value Asserts, logs and throws when the provided member does not exist or is invalid type.

◆ getString() [1/6]

std::string ot::json::getString ( const ConstJsonArray & _value,
unsigned int _ix,
const std::string & _default = std::string() )

◆ getString() [2/6]

std::string ot::json::getString ( const ConstJsonObject & _value,
const char * _member,
const std::string & _default = std::string() )

◆ getString() [3/6]

std::string ot::json::getString ( const ConstJsonObject & _value,
const std::string & _member,
const std::string & _default = std::string() )

◆ getString() [4/6]

std::string ot::json::getString ( const JsonValue & _value,
const char * _member,
const std::string & _default = std::string() )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getString() [5/6]

std::string ot::json::getString ( const JsonValue & _value,
const std::string & _member,
const std::string & _default = std::string() )

◆ getString() [6/6]

std::string ot::json::getString ( const JsonValue & _value,
unsigned int _ix,
const std::string & _default = std::string() )

Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getStringList() [1/6]

std::list< std::string > ot::json::getStringList ( const ConstJsonArray & _value,
unsigned int _ix,
const std::list< std::string > & _default = std::list<std::string>() )

◆ getStringList() [2/6]

std::list< std::string > ot::json::getStringList ( const ConstJsonObject & _value,
const char * _member,
const std::list< std::string > & _default = std::list<std::string>() )

◆ getStringList() [3/6]

std::list< std::string > ot::json::getStringList ( const ConstJsonObject & _value,
const std::string & _member,
const std::list< std::string > & _default = std::list<std::string>() )

◆ getStringList() [4/6]

std::list< std::string > ot::json::getStringList ( const JsonValue & _value,
const char * _member,
const std::list< std::string > & _default = std::list<std::string>() )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getStringList() [5/6]

std::list< std::string > ot::json::getStringList ( const JsonValue & _value,
const std::string & _member,
const std::list< std::string > & _default = std::list<std::string>() )

◆ getStringList() [6/6]

std::list< std::string > ot::json::getStringList ( const JsonValue & _value,
unsigned int _ix,
const std::list< std::string > & _default = std::list<std::string>() )

Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getStringVector() [1/6]

std::vector< std::string > ot::json::getStringVector ( const ConstJsonArray & _value,
unsigned int _ix,
const std::vector< std::string > & _default = std::vector<std::string>() )

◆ getStringVector() [2/6]

std::vector< std::string > ot::json::getStringVector ( const ConstJsonObject & _value,
const char * _member,
const std::vector< std::string > & _default = std::vector<std::string>() )

◆ getStringVector() [3/6]

std::vector< std::string > ot::json::getStringVector ( const ConstJsonObject & _value,
const std::string & _member,
const std::vector< std::string > & _default = std::vector<std::string>() )

◆ getStringVector() [4/6]

std::vector< std::string > ot::json::getStringVector ( const JsonValue & _value,
const char * _member,
const std::vector< std::string > & _default = std::vector<std::string>() )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getStringVector() [5/6]

std::vector< std::string > ot::json::getStringVector ( const JsonValue & _value,
const std::string & _member,
const std::vector< std::string > & _default = std::vector<std::string>() )

◆ getStringVector() [6/6]

std::vector< std::string > ot::json::getStringVector ( const JsonValue & _value,
unsigned int _ix,
const std::vector< std::string > & _default = std::vector<std::string>() )

Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getUInt() [1/6]

uint32_t ot::json::getUInt ( const ConstJsonArray & _value,
unsigned int _ix,
uint32_t _default = 0 )

◆ getUInt() [2/6]

uint32_t ot::json::getUInt ( const ConstJsonObject & _value,
const char * _member,
uint32_t _default = 0 )

◆ getUInt() [3/6]

uint32_t ot::json::getUInt ( const ConstJsonObject & _value,
const std::string & _member,
uint32_t _default = 0 )

◆ getUInt() [4/6]

uint32_t ot::json::getUInt ( const JsonValue & _value,
const char * _member,
uint32_t _default = 0 )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getUInt() [5/6]

uint32_t ot::json::getUInt ( const JsonValue & _value,
const std::string & _member,
uint32_t _default = 0 )

◆ getUInt() [6/6]

uint32_t ot::json::getUInt ( const JsonValue & _value,
unsigned int _ix,
uint32_t _default = 0 )

Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getUInt64() [1/6]

uint64_t ot::json::getUInt64 ( const ConstJsonArray & _value,
unsigned int _ix,
uint64_t _default = 0 )

◆ getUInt64() [2/6]

uint64_t ot::json::getUInt64 ( const ConstJsonObject & _value,
const char * _member,
uint64_t _default = 0 )

◆ getUInt64() [3/6]

uint64_t ot::json::getUInt64 ( const ConstJsonObject & _value,
const std::string & _member,
uint64_t _default = 0 )

◆ getUInt64() [4/6]

uint64_t ot::json::getUInt64 ( const JsonValue & _value,
const char * _member,
uint64_t _default = 0 )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getUInt64() [5/6]

uint64_t ot::json::getUInt64 ( const JsonValue & _value,
const std::string & _member,
uint64_t _default = 0 )

◆ getUInt64() [6/6]

uint64_t ot::json::getUInt64 ( const JsonValue & _value,
unsigned int _ix,
uint64_t _default = 0 )

Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getUInt64Array() [1/4]

uint64_t * ot::json::getUInt64Array ( const ConstJsonObject & _value,
const char * _member,
JsonSizeType & _size )

◆ getUInt64Array() [2/4]

uint64_t * ot::json::getUInt64Array ( const ConstJsonObject & _value,
const std::string & _member,
JsonSizeType & _size )

◆ getUInt64Array() [3/4]

uint64_t * ot::json::getUInt64Array ( const JsonValue & _value,
const char * _member,
JsonSizeType & _size )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getUInt64Array() [4/4]

uint64_t * ot::json::getUInt64Array ( const JsonValue & _value,
const std::string & _member,
JsonSizeType & _size )

◆ getUInt64List() [1/6]

std::list< uint64_t > ot::json::getUInt64List ( const ConstJsonArray & _value,
unsigned int _ix,
const std::list< uint64_t > & _default = std::list<uint64_t>() )

◆ getUInt64List() [2/6]

std::list< uint64_t > ot::json::getUInt64List ( const ConstJsonObject & _value,
const char * _member,
const std::list< uint64_t > & _default = std::list<uint64_t>() )

◆ getUInt64List() [3/6]

std::list< uint64_t > ot::json::getUInt64List ( const ConstJsonObject & _value,
const std::string & _member,
const std::list< uint64_t > & _default = std::list<uint64_t>() )

◆ getUInt64List() [4/6]

std::list< uint64_t > ot::json::getUInt64List ( const JsonValue & _value,
const char * _member,
const std::list< uint64_t > & _default = std::list<uint64_t>() )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getUInt64List() [5/6]

std::list< uint64_t > ot::json::getUInt64List ( const JsonValue & _value,
const std::string & _member,
const std::list< uint64_t > & _default = std::list<uint64_t>() )

◆ getUInt64List() [6/6]

std::list< uint64_t > ot::json::getUInt64List ( const JsonValue & _value,
unsigned int _ix,
const std::list< uint64_t > & _default = std::list<uint64_t>() )

Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getUInt64Vector() [1/6]

std::vector< uint64_t > ot::json::getUInt64Vector ( const ConstJsonArray & _value,
unsigned int _ix,
const std::vector< uint64_t > & _default = std::vector<uint64_t>() )

◆ getUInt64Vector() [2/6]

std::vector< uint64_t > ot::json::getUInt64Vector ( const ConstJsonObject & _value,
const char * _member,
const std::vector< uint64_t > & _default = std::vector<uint64_t>() )

◆ getUInt64Vector() [3/6]

std::vector< uint64_t > ot::json::getUInt64Vector ( const ConstJsonObject & _value,
const std::string & _member,
const std::vector< uint64_t > & _default = std::vector<uint64_t>() )

◆ getUInt64Vector() [4/6]

std::vector< uint64_t > ot::json::getUInt64Vector ( const JsonValue & _value,
const char * _member,
const std::vector< uint64_t > & _default = std::vector<uint64_t>() )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getUInt64Vector() [5/6]

std::vector< uint64_t > ot::json::getUInt64Vector ( const JsonValue & _value,
const std::string & _member,
const std::vector< uint64_t > & _default = std::vector<uint64_t>() )

◆ getUInt64Vector() [6/6]

std::vector< uint64_t > ot::json::getUInt64Vector ( const JsonValue & _value,
unsigned int _ix,
const std::vector< uint64_t > & _default = std::vector<uint64_t>() )

Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getUIntArray() [1/4]

uint32_t * ot::json::getUIntArray ( const ConstJsonObject & _value,
const char * _member,
JsonSizeType & _size )

◆ getUIntArray() [2/4]

uint32_t * ot::json::getUIntArray ( const ConstJsonObject & _value,
const std::string & _member,
JsonSizeType & _size )

◆ getUIntArray() [3/4]

uint32_t * ot::json::getUIntArray ( const JsonValue & _value,
const char * _member,
JsonSizeType & _size )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getUIntArray() [4/4]

uint32_t * ot::json::getUIntArray ( const JsonValue & _value,
const std::string & _member,
JsonSizeType & _size )

◆ getUIntList() [1/6]

std::list< uint32_t > ot::json::getUIntList ( const ConstJsonArray & _value,
unsigned int _ix,
const std::list< uint32_t > & _default = std::list<uint32_t>() )

◆ getUIntList() [2/6]

std::list< uint32_t > ot::json::getUIntList ( const ConstJsonObject & _value,
const char * _member,
const std::list< uint32_t > & _default = std::list<uint32_t>() )

◆ getUIntList() [3/6]

std::list< uint32_t > ot::json::getUIntList ( const ConstJsonObject & _value,
const std::string & _member,
const std::list< uint32_t > & _default = std::list<uint32_t>() )

◆ getUIntList() [4/6]

std::list< uint32_t > ot::json::getUIntList ( const JsonValue & _value,
const char * _member,
const std::list< uint32_t > & _default = std::list<uint32_t>() )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getUIntList() [5/6]

std::list< uint32_t > ot::json::getUIntList ( const JsonValue & _value,
const std::string & _member,
const std::list< uint32_t > & _default = std::list<uint32_t>() )

◆ getUIntList() [6/6]

std::list< uint32_t > ot::json::getUIntList ( const JsonValue & _value,
unsigned int _ix,
const std::list< uint32_t > & _default = std::list<uint32_t>() )

Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getUIntVector() [1/6]

std::vector< uint32_t > ot::json::getUIntVector ( const ConstJsonArray & _value,
unsigned int _ix,
const std::vector< uint32_t > & _default = std::vector<uint32_t>() )

◆ getUIntVector() [2/6]

std::vector< uint32_t > ot::json::getUIntVector ( const ConstJsonObject & _value,
const char * _member,
const std::vector< uint32_t > & _default = std::vector<uint32_t>() )

◆ getUIntVector() [3/6]

std::vector< uint32_t > ot::json::getUIntVector ( const ConstJsonObject & _value,
const std::string & _member,
const std::vector< uint32_t > & _default = std::vector<uint32_t>() )

◆ getUIntVector() [4/6]

std::vector< uint32_t > ot::json::getUIntVector ( const JsonValue & _value,
const char * _member,
const std::vector< uint32_t > & _default = std::vector<uint32_t>() )

Check and return the requested value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ getUIntVector() [5/6]

std::vector< uint32_t > ot::json::getUIntVector ( const JsonValue & _value,
const std::string & _member,
const std::vector< uint32_t > & _default = std::vector<uint32_t>() )

◆ getUIntVector() [6/6]

std::vector< uint32_t > ot::json::getUIntVector ( const JsonValue & _value,
unsigned int _ix,
const std::vector< uint32_t > & _default = std::vector<uint32_t>() )

Check and return the requested value from the provided array value Asserts, logs and returns default when the provided member does not exist or is invalid type.

◆ isArray() [1/6]

bool ot::json::isArray ( const ConstJsonArray & _value,
unsigned int _ix )

Returns true if the specified array entry is a array.

◆ isArray() [2/6]

bool ot::json::isArray ( const ConstJsonObject & _value,
const char * _member )

Returns true if the specified object member is a array.

◆ isArray() [3/6]

bool ot::json::isArray ( const ConstJsonObject & _value,
const std::string & _member )

◆ isArray() [4/6]

bool ot::json::isArray ( const JsonValue & _value,
const char * _member )

Returns true if the specified object member is a array.

◆ isArray() [5/6]

bool ot::json::isArray ( const JsonValue & _value,
const std::string & _member )

◆ isArray() [6/6]

bool ot::json::isArray ( const JsonValue & _value,
unsigned int _ix )

Returns true if the specified array entry is a array.

◆ isBool() [1/6]

bool ot::json::isBool ( const ConstJsonArray & _value,
unsigned int _ix )

Returns true if the specified array entry is a bool.

◆ isBool() [2/6]

bool ot::json::isBool ( const ConstJsonObject & _value,
const char * _member )

Returns true if the specified object member is a bool.

◆ isBool() [3/6]

bool ot::json::isBool ( const ConstJsonObject & _value,
const std::string & _member )

◆ isBool() [4/6]

bool ot::json::isBool ( const JsonValue & _value,
const char * _member )

Returns true if the specified object member is a bool.

◆ isBool() [5/6]

bool ot::json::isBool ( const JsonValue & _value,
const std::string & _member )

◆ isBool() [6/6]

bool ot::json::isBool ( const JsonValue & _value,
unsigned int _ix )

Returns true if the specified array entry is a bool.

◆ isDouble() [1/6]

bool ot::json::isDouble ( const ConstJsonArray & _value,
unsigned int _ix )

Returns true if the specified array entry is a double.

◆ isDouble() [2/6]

bool ot::json::isDouble ( const ConstJsonObject & _value,
const char * _member )

Returns true if the specified object member is a double.

◆ isDouble() [3/6]

bool ot::json::isDouble ( const ConstJsonObject & _value,
const std::string & _member )

◆ isDouble() [4/6]

bool ot::json::isDouble ( const JsonValue & _value,
const char * _member )

Returns true if the specified object member is a double.

◆ isDouble() [5/6]

bool ot::json::isDouble ( const JsonValue & _value,
const std::string & _member )

◆ isDouble() [6/6]

bool ot::json::isDouble ( const JsonValue & _value,
unsigned int _ix )

Returns true if the specified array entry is a double.

◆ isFloat() [1/6]

bool ot::json::isFloat ( const ConstJsonArray & _value,
unsigned int _ix )

Returns true if the specified array entry is a float.

◆ isFloat() [2/6]

bool ot::json::isFloat ( const ConstJsonObject & _value,
const char * _member )

Returns true if the specified object member is a float.

◆ isFloat() [3/6]

bool ot::json::isFloat ( const ConstJsonObject & _value,
const std::string & _member )

◆ isFloat() [4/6]

bool ot::json::isFloat ( const JsonValue & _value,
const char * _member )

Returns true if the specified object member is a float.

◆ isFloat() [5/6]

bool ot::json::isFloat ( const JsonValue & _value,
const std::string & _member )

◆ isFloat() [6/6]

bool ot::json::isFloat ( const JsonValue & _value,
unsigned int _ix )

Returns true if the specified array entry is a float.

◆ isInt() [1/6]

bool ot::json::isInt ( const ConstJsonArray & _value,
unsigned int _ix )

Returns true if the specified array entry is a int.

◆ isInt() [2/6]

bool ot::json::isInt ( const ConstJsonObject & _value,
const char * _member )

Returns true if the specified object member is a int.

◆ isInt() [3/6]

bool ot::json::isInt ( const ConstJsonObject & _value,
const std::string & _member )

◆ isInt() [4/6]

bool ot::json::isInt ( const JsonValue & _value,
const char * _member )

Returns true if the specified object member is a int.

◆ isInt() [5/6]

bool ot::json::isInt ( const JsonValue & _value,
const std::string & _member )

◆ isInt() [6/6]

bool ot::json::isInt ( const JsonValue & _value,
unsigned int _ix )

Returns true if the specified array entry is a int.

◆ isInt64() [1/6]

bool ot::json::isInt64 ( const ConstJsonArray & _value,
unsigned int _ix )

Returns true if the specified array entry is a int64.

◆ isInt64() [2/6]

bool ot::json::isInt64 ( const ConstJsonObject & _value,
const char * _member )

Returns true if the specified object member is a int64.

◆ isInt64() [3/6]

bool ot::json::isInt64 ( const ConstJsonObject & _value,
const std::string & _member )

◆ isInt64() [4/6]

bool ot::json::isInt64 ( const JsonValue & _value,
const char * _member )

Returns true if the specified object member is a int64.

◆ isInt64() [5/6]

bool ot::json::isInt64 ( const JsonValue & _value,
const std::string & _member )

◆ isInt64() [6/6]

bool ot::json::isInt64 ( const JsonValue & _value,
unsigned int _ix )

Returns true if the specified array entry is a int64.

◆ isNull() [1/6]

bool ot::json::isNull ( const ConstJsonArray & _value,
unsigned int _ix )

Returns true if the specified array entry is a null.

◆ isNull() [2/6]

bool ot::json::isNull ( const ConstJsonObject & _value,
const char * _member )

Returns true if the specified object member is a null.

◆ isNull() [3/6]

bool ot::json::isNull ( const ConstJsonObject & _value,
const std::string & _member )

◆ isNull() [4/6]

bool ot::json::isNull ( const JsonValue & _value,
const char * _member )

Returns true if the specified object member is a null.

◆ isNull() [5/6]

bool ot::json::isNull ( const JsonValue & _value,
const std::string & _member )

◆ isNull() [6/6]

bool ot::json::isNull ( const JsonValue & _value,
unsigned int _ix )

Returns true if the specified array entry is a null.

◆ isObject() [1/6]

bool ot::json::isObject ( const ConstJsonArray & _value,
unsigned int _ix )

Returns true if the specified array entry is a object.

◆ isObject() [2/6]

bool ot::json::isObject ( const ConstJsonObject & _value,
const char * _member )

Returns true if the specified object member is a object.

◆ isObject() [3/6]

bool ot::json::isObject ( const ConstJsonObject & _value,
const std::string & _member )

◆ isObject() [4/6]

bool ot::json::isObject ( const JsonValue & _value,
const char * _member )

Returns true if the specified object member is a object.

◆ isObject() [5/6]

bool ot::json::isObject ( const JsonValue & _value,
const std::string & _member )

◆ isObject() [6/6]

bool ot::json::isObject ( const JsonValue & _value,
unsigned int _ix )

Returns true if the specified array entry is a object.

◆ isString() [1/6]

bool ot::json::isString ( const ConstJsonArray & _value,
unsigned int _ix )

Returns true if the specified array entry is a string.

◆ isString() [2/6]

bool ot::json::isString ( const ConstJsonObject & _value,
const char * _member )

Returns true if the specified object member is a string.

◆ isString() [3/6]

bool ot::json::isString ( const ConstJsonObject & _value,
const std::string & _member )

◆ isString() [4/6]

bool ot::json::isString ( const JsonValue & _value,
const char * _member )

Returns true if the specified object member is a string.

◆ isString() [5/6]

bool ot::json::isString ( const JsonValue & _value,
const std::string & _member )

◆ isString() [6/6]

bool ot::json::isString ( const JsonValue & _value,
unsigned int _ix )

Returns true if the specified array entry is a string.

◆ isUInt() [1/6]

bool ot::json::isUInt ( const ConstJsonArray & _value,
unsigned int _ix )

Returns true if the specified array entry is a uInt.

◆ isUInt() [2/6]

bool ot::json::isUInt ( const ConstJsonObject & _value,
const char * _member )

Returns true if the specified object member is a uInt.

◆ isUInt() [3/6]

bool ot::json::isUInt ( const ConstJsonObject & _value,
const std::string & _member )

◆ isUInt() [4/6]

bool ot::json::isUInt ( const JsonValue & _value,
const char * _member )

Returns true if the specified object member is a uInt.

◆ isUInt() [5/6]

bool ot::json::isUInt ( const JsonValue & _value,
const std::string & _member )

◆ isUInt() [6/6]

bool ot::json::isUInt ( const JsonValue & _value,
unsigned int _ix )

Returns true if the specified array entry is a uInt.

◆ isUInt64() [1/6]

bool ot::json::isUInt64 ( const ConstJsonArray & _value,
unsigned int _ix )

Returns true if the specified array entry is a uInt64.

◆ isUInt64() [2/6]

bool ot::json::isUInt64 ( const ConstJsonObject & _value,
const char * _member )

Returns true if the specified object member is a uInt64.

◆ isUInt64() [3/6]

bool ot::json::isUInt64 ( const ConstJsonObject & _value,
const std::string & _member )

◆ isUInt64() [4/6]

bool ot::json::isUInt64 ( const JsonValue & _value,
const char * _member )

Returns true if the specified object member is a uInt64.

◆ isUInt64() [5/6]

bool ot::json::isUInt64 ( const JsonValue & _value,
const std::string & _member )

◆ isUInt64() [6/6]

bool ot::json::isUInt64 ( const JsonValue & _value,
unsigned int _ix )

Returns true if the specified array entry is a uInt64.