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< ConstJsonObject > | 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. | |
OT_CORE_API_EXPORT std::list< ConstJsonObject > | getObjectList (const JsonValue &_value, const std::string &_member) |
OT_CORE_API_EXPORT std::list< ConstJsonObject > | getObjectList (const ConstJsonObject &_value, const char *_member) |
OT_CORE_API_EXPORT std::list< ConstJsonObject > | getObjectList (const ConstJsonObject &_value, const std::string &_member) |
OT_CORE_API_EXPORT std::list< ConstJsonArray > | 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. | |
OT_CORE_API_EXPORT std::list< ConstJsonArray > | getArrayList (const JsonValue &_value, const std::string &_member) |
OT_CORE_API_EXPORT std::list< ConstJsonArray > | getArrayList (const ConstJsonObject &_value, const char *_member) |
OT_CORE_API_EXPORT std::list< ConstJsonArray > | getArrayList (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< ConstJsonObject > | 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. | |
OT_CORE_API_EXPORT std::vector< ConstJsonObject > | getObjectVector (const JsonValue &_value, const std::string &_member) |
OT_CORE_API_EXPORT std::vector< ConstJsonObject > | getObjectVector (const ConstJsonObject &_value, const char *_member) |
OT_CORE_API_EXPORT std::vector< ConstJsonObject > | getObjectVector (const ConstJsonObject &_value, const std::string &_member) |
OT_CORE_API_EXPORT std::vector< ConstJsonArray > | 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. | |
OT_CORE_API_EXPORT std::vector< ConstJsonArray > | getArrayVector (const JsonValue &_value, const std::string &_member) |
OT_CORE_API_EXPORT std::vector< ConstJsonArray > | getArrayVector (const ConstJsonObject &_value, const char *_member) |
OT_CORE_API_EXPORT std::vector< ConstJsonArray > | getArrayVector (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< ConstJsonObject > | 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. | |
OT_CORE_API_EXPORT std::list< ConstJsonObject > | getObjectList (const ConstJsonArray &_value, unsigned int _ix) |
OT_CORE_API_EXPORT std::list< ConstJsonArray > | 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. | |
OT_CORE_API_EXPORT std::list< ConstJsonArray > | getArrayList (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< ConstJsonObject > | 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. | |
OT_CORE_API_EXPORT std::vector< ConstJsonObject > | getObjectVector (const ConstJsonArray &_value, unsigned int _ix) |
OT_CORE_API_EXPORT std::vector< ConstJsonArray > | 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. | |
OT_CORE_API_EXPORT std::vector< ConstJsonArray > | getArrayVector (const ConstJsonArray &_value, unsigned int _ix) |
Provides helper functions to acces content of json objects and arrays.
bool ot::json::exists | ( | const ConstJsonObject & | _value, |
const char * | _member ) |
Returns true if the specified object member exists.
bool ot::json::exists | ( | const ConstJsonObject & | _value, |
const std::string & | _member ) |
bool ot::json::exists | ( | const JsonValue & | _value, |
const char * | _member ) |
Returns true if the specified object member exists.
bool ot::json::exists | ( | const JsonValue & | _value, |
const std::string & | _member ) |
ot::ConstJsonArray ot::json::getArray | ( | const ConstJsonArray & | _value, |
unsigned int | _ix ) |
ot::ConstJsonArray ot::json::getArray | ( | const ConstJsonObject & | _value, |
const char * | _member ) |
ot::ConstJsonArray ot::json::getArray | ( | const ConstJsonObject & | _value, |
const std::string & | _member ) |
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.
ot::ConstJsonArray ot::json::getArray | ( | const JsonValue & | _value, |
const std::string & | _member ) |
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.
std::list< ot::ConstJsonArray > ot::json::getArrayList | ( | const ConstJsonArray & | _value, |
unsigned int | _ix ) |
std::list< ot::ConstJsonArray > ot::json::getArrayList | ( | const ConstJsonObject & | _value, |
const char * | _member ) |
std::list< ot::ConstJsonArray > ot::json::getArrayList | ( | const ConstJsonObject & | _value, |
const std::string & | _member ) |
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.
std::list< ot::ConstJsonArray > ot::json::getArrayList | ( | const JsonValue & | _value, |
const std::string & | _member ) |
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.
std::vector< ot::ConstJsonArray > ot::json::getArrayVector | ( | const ConstJsonArray & | _value, |
unsigned int | _ix ) |
std::vector< ot::ConstJsonArray > ot::json::getArrayVector | ( | const ConstJsonObject & | _value, |
const char * | _member ) |
std::vector< ot::ConstJsonArray > ot::json::getArrayVector | ( | const ConstJsonObject & | _value, |
const std::string & | _member ) |
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.
std::vector< ot::ConstJsonArray > ot::json::getArrayVector | ( | const JsonValue & | _value, |
const std::string & | _member ) |
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.
bool ot::json::getBool | ( | const ConstJsonArray & | _value, |
unsigned int | _ix, | ||
bool | _default = false ) |
bool ot::json::getBool | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
bool | _default = false ) |
bool ot::json::getBool | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
bool | _default = false ) |
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.
bool ot::json::getBool | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
bool | _default = false ) |
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.
bool * ot::json::getBoolArray | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
JsonSizeType & | _size ) |
bool * ot::json::getBoolArray | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
JsonSizeType & | _size ) |
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.
bool * ot::json::getBoolArray | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
JsonSizeType & | _size ) |
std::list< bool > ot::json::getBoolList | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
const std::list< bool > & | _default = std::list<bool>() ) |
std::list< bool > ot::json::getBoolList | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
const std::list< bool > & | _default = std::list<bool>() ) |
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.
std::list< bool > ot::json::getBoolList | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
const std::list< bool > & | _default = std::list<bool>() ) |
std::vector< bool > ot::json::getBoolVector | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
const std::vector< bool > & | _default = std::vector<bool>() ) |
std::vector< bool > ot::json::getBoolVector | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
const std::vector< bool > & | _default = std::vector<bool>() ) |
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.
std::vector< bool > ot::json::getBoolVector | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
const std::vector< bool > & | _default = std::vector<bool>() ) |
double ot::json::getDouble | ( | const ConstJsonArray & | _value, |
unsigned int | _ix, | ||
double | _default = 0. ) |
double ot::json::getDouble | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
double | _default = 0. ) |
double ot::json::getDouble | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
double | _default = 0. ) |
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.
double ot::json::getDouble | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
double | _default = 0. ) |
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.
double * ot::json::getDoubleArray | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
JsonSizeType & | _size ) |
double * ot::json::getDoubleArray | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
JsonSizeType & | _size ) |
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.
double * ot::json::getDoubleArray | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
JsonSizeType & | _size ) |
std::list< double > ot::json::getDoubleList | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
const std::list< double > & | _default = std::list<double>() ) |
std::list< double > ot::json::getDoubleList | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
const std::list< double > & | _default = std::list<double>() ) |
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.
std::list< double > ot::json::getDoubleList | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
const std::list< double > & | _default = std::list<double>() ) |
std::vector< double > ot::json::getDoubleVector | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
const std::vector< double > & | _default = std::vector<double>() ) |
std::vector< double > ot::json::getDoubleVector | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
const std::vector< double > & | _default = std::vector<double>() ) |
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.
std::vector< double > ot::json::getDoubleVector | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
const std::vector< double > & | _default = std::vector<double>() ) |
float ot::json::getFloat | ( | const ConstJsonArray & | _value, |
unsigned int | _ix, | ||
float | _default = 0.f ) |
float ot::json::getFloat | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
float | _default = 0.f ) |
float ot::json::getFloat | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
float | _default = 0.f ) |
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.
float ot::json::getFloat | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
float | _default = 0.f ) |
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.
float * ot::json::getFloatArray | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
JsonSizeType & | _size ) |
float * ot::json::getFloatArray | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
JsonSizeType & | _size ) |
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.
float * ot::json::getFloatArray | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
JsonSizeType & | _size ) |
std::list< float > ot::json::getFloatList | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
const std::list< float > & | _default = std::list<float>() ) |
std::list< float > ot::json::getFloatList | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
const std::list< float > & | _default = std::list<float>() ) |
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.
std::list< float > ot::json::getFloatList | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
const std::list< float > & | _default = std::list<float>() ) |
std::vector< float > ot::json::getFloatVector | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
const std::vector< float > & | _default = std::vector<float>() ) |
std::vector< float > ot::json::getFloatVector | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
const std::vector< float > & | _default = std::vector<float>() ) |
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.
std::vector< float > ot::json::getFloatVector | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
const std::vector< float > & | _default = std::vector<float>() ) |
int32_t ot::json::getInt | ( | const ConstJsonArray & | _value, |
unsigned int | _ix, | ||
int32_t | _default = 0 ) |
int32_t ot::json::getInt | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
int32_t | _default = 0 ) |
int32_t ot::json::getInt | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
int32_t | _default = 0 ) |
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.
int32_t ot::json::getInt | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
int32_t | _default = 0 ) |
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.
int64_t ot::json::getInt64 | ( | const ConstJsonArray & | _value, |
unsigned int | _ix, | ||
int64_t | _default = 0 ) |
int64_t ot::json::getInt64 | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
int64_t | _default = 0 ) |
int64_t ot::json::getInt64 | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
int64_t | _default = 0 ) |
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.
int64_t ot::json::getInt64 | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
int64_t | _default = 0 ) |
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.
int64_t * ot::json::getInt64Array | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
JsonSizeType & | _size ) |
int64_t * ot::json::getInt64Array | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
JsonSizeType & | _size ) |
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.
int64_t * ot::json::getInt64Array | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
JsonSizeType & | _size ) |
std::list< int64_t > ot::json::getInt64List | ( | const ConstJsonArray & | _value, |
unsigned int | _ix, | ||
const std::list< int64_t > & | _default = std::list<int64_t>() ) |
std::list< int64_t > ot::json::getInt64List | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
const std::list< int64_t > & | _default = std::list<int64_t>() ) |
std::list< int64_t > ot::json::getInt64List | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
const std::list< int64_t > & | _default = std::list<int64_t>() ) |
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.
std::list< int64_t > ot::json::getInt64List | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
const std::list< int64_t > & | _default = std::list<int64_t>() ) |
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.
std::vector< int64_t > ot::json::getInt64Vector | ( | const ConstJsonArray & | _value, |
unsigned int | _ix, | ||
const std::vector< int64_t > & | _default = std::vector<int64_t>() ) |
std::vector< int64_t > ot::json::getInt64Vector | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
const std::vector< int64_t > & | _default = std::vector<int64_t>() ) |
std::vector< int64_t > ot::json::getInt64Vector | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
const std::vector< int64_t > & | _default = std::vector<int64_t>() ) |
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.
std::vector< int64_t > ot::json::getInt64Vector | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
const std::vector< int64_t > & | _default = std::vector<int64_t>() ) |
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.
int32_t * ot::json::getIntArray | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
JsonSizeType & | _size ) |
int32_t * ot::json::getIntArray | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
JsonSizeType & | _size ) |
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.
int32_t * ot::json::getIntArray | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
JsonSizeType & | _size ) |
std::list< int32_t > ot::json::getIntList | ( | const ConstJsonArray & | _value, |
unsigned int | _ix, | ||
const std::list< int32_t > & | _default = std::list<int32_t>() ) |
std::list< int32_t > ot::json::getIntList | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
const std::list< int32_t > & | _default = std::list<int32_t>() ) |
std::list< int32_t > ot::json::getIntList | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
const std::list< int32_t > & | _default = std::list<int32_t>() ) |
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.
std::list< int32_t > ot::json::getIntList | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
const std::list< int32_t > & | _default = std::list<int32_t>() ) |
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.
std::vector< int32_t > ot::json::getIntVector | ( | const ConstJsonArray & | _value, |
unsigned int | _ix, | ||
const std::vector< int32_t > & | _default = std::vector<int32_t>() ) |
std::vector< int32_t > ot::json::getIntVector | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
const std::vector< int32_t > & | _default = std::vector<int32_t>() ) |
std::vector< int32_t > ot::json::getIntVector | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
const std::vector< int32_t > & | _default = std::vector<int32_t>() ) |
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.
std::vector< int32_t > ot::json::getIntVector | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
const std::vector< int32_t > & | _default = std::vector<int32_t>() ) |
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.
ot::ConstJsonObject ot::json::getObject | ( | const ConstJsonArray & | _value, |
unsigned int | _ix ) |
ot::ConstJsonObject ot::json::getObject | ( | const ConstJsonObject & | _value, |
const char * | _member ) |
ot::ConstJsonObject ot::json::getObject | ( | const ConstJsonObject & | _value, |
const std::string & | _member ) |
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.
ot::ConstJsonObject ot::json::getObject | ( | const JsonValue & | _value, |
const std::string & | _member ) |
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.
std::list< ot::ConstJsonObject > ot::json::getObjectList | ( | const ConstJsonArray & | _value, |
unsigned int | _ix ) |
std::list< ot::ConstJsonObject > ot::json::getObjectList | ( | const ConstJsonObject & | _value, |
const char * | _member ) |
std::list< ot::ConstJsonObject > ot::json::getObjectList | ( | const ConstJsonObject & | _value, |
const std::string & | _member ) |
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.
std::list< ot::ConstJsonObject > ot::json::getObjectList | ( | const JsonValue & | _value, |
const std::string & | _member ) |
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.
std::vector< ot::ConstJsonObject > ot::json::getObjectVector | ( | const ConstJsonArray & | _value, |
unsigned int | _ix ) |
std::vector< ot::ConstJsonObject > ot::json::getObjectVector | ( | const ConstJsonObject & | _value, |
const char * | _member ) |
std::vector< ot::ConstJsonObject > ot::json::getObjectVector | ( | const ConstJsonObject & | _value, |
const std::string & | _member ) |
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.
std::vector< ot::ConstJsonObject > ot::json::getObjectVector | ( | const JsonValue & | _value, |
const std::string & | _member ) |
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.
std::string ot::json::getString | ( | const ConstJsonArray & | _value, |
unsigned int | _ix, | ||
const std::string & | _default = std::string() ) |
std::string ot::json::getString | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
const std::string & | _default = std::string() ) |
std::string ot::json::getString | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
const std::string & | _default = std::string() ) |
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.
std::string ot::json::getString | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
const std::string & | _default = std::string() ) |
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.
std::list< std::string > ot::json::getStringList | ( | const ConstJsonArray & | _value, |
unsigned int | _ix, | ||
const std::list< std::string > & | _default = std::list<std::string>() ) |
std::list< std::string > ot::json::getStringList | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
const std::list< std::string > & | _default = std::list<std::string>() ) |
std::list< std::string > ot::json::getStringList | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
const std::list< std::string > & | _default = std::list<std::string>() ) |
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.
std::list< std::string > ot::json::getStringList | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
const std::list< std::string > & | _default = std::list<std::string>() ) |
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.
std::vector< std::string > ot::json::getStringVector | ( | const ConstJsonArray & | _value, |
unsigned int | _ix, | ||
const std::vector< std::string > & | _default = std::vector<std::string>() ) |
std::vector< std::string > ot::json::getStringVector | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
const std::vector< std::string > & | _default = std::vector<std::string>() ) |
std::vector< std::string > ot::json::getStringVector | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
const std::vector< std::string > & | _default = std::vector<std::string>() ) |
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.
std::vector< std::string > ot::json::getStringVector | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
const std::vector< std::string > & | _default = std::vector<std::string>() ) |
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.
uint32_t ot::json::getUInt | ( | const ConstJsonArray & | _value, |
unsigned int | _ix, | ||
uint32_t | _default = 0 ) |
uint32_t ot::json::getUInt | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
uint32_t | _default = 0 ) |
uint32_t ot::json::getUInt | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
uint32_t | _default = 0 ) |
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.
uint32_t ot::json::getUInt | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
uint32_t | _default = 0 ) |
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.
uint64_t ot::json::getUInt64 | ( | const ConstJsonArray & | _value, |
unsigned int | _ix, | ||
uint64_t | _default = 0 ) |
uint64_t ot::json::getUInt64 | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
uint64_t | _default = 0 ) |
uint64_t ot::json::getUInt64 | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
uint64_t | _default = 0 ) |
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.
uint64_t ot::json::getUInt64 | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
uint64_t | _default = 0 ) |
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.
uint64_t * ot::json::getUInt64Array | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
JsonSizeType & | _size ) |
uint64_t * ot::json::getUInt64Array | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
JsonSizeType & | _size ) |
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.
uint64_t * ot::json::getUInt64Array | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
JsonSizeType & | _size ) |
std::list< uint64_t > ot::json::getUInt64List | ( | const ConstJsonArray & | _value, |
unsigned int | _ix, | ||
const std::list< uint64_t > & | _default = std::list<uint64_t>() ) |
std::list< uint64_t > ot::json::getUInt64List | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
const std::list< uint64_t > & | _default = std::list<uint64_t>() ) |
std::list< uint64_t > ot::json::getUInt64List | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
const std::list< uint64_t > & | _default = std::list<uint64_t>() ) |
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.
std::list< uint64_t > ot::json::getUInt64List | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
const std::list< uint64_t > & | _default = std::list<uint64_t>() ) |
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.
std::vector< uint64_t > ot::json::getUInt64Vector | ( | const ConstJsonArray & | _value, |
unsigned int | _ix, | ||
const std::vector< uint64_t > & | _default = std::vector<uint64_t>() ) |
std::vector< uint64_t > ot::json::getUInt64Vector | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
const std::vector< uint64_t > & | _default = std::vector<uint64_t>() ) |
std::vector< uint64_t > ot::json::getUInt64Vector | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
const std::vector< uint64_t > & | _default = std::vector<uint64_t>() ) |
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.
std::vector< uint64_t > ot::json::getUInt64Vector | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
const std::vector< uint64_t > & | _default = std::vector<uint64_t>() ) |
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.
uint32_t * ot::json::getUIntArray | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
JsonSizeType & | _size ) |
uint32_t * ot::json::getUIntArray | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
JsonSizeType & | _size ) |
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.
uint32_t * ot::json::getUIntArray | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
JsonSizeType & | _size ) |
std::list< uint32_t > ot::json::getUIntList | ( | const ConstJsonArray & | _value, |
unsigned int | _ix, | ||
const std::list< uint32_t > & | _default = std::list<uint32_t>() ) |
std::list< uint32_t > ot::json::getUIntList | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
const std::list< uint32_t > & | _default = std::list<uint32_t>() ) |
std::list< uint32_t > ot::json::getUIntList | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
const std::list< uint32_t > & | _default = std::list<uint32_t>() ) |
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.
std::list< uint32_t > ot::json::getUIntList | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
const std::list< uint32_t > & | _default = std::list<uint32_t>() ) |
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.
std::vector< uint32_t > ot::json::getUIntVector | ( | const ConstJsonArray & | _value, |
unsigned int | _ix, | ||
const std::vector< uint32_t > & | _default = std::vector<uint32_t>() ) |
std::vector< uint32_t > ot::json::getUIntVector | ( | const ConstJsonObject & | _value, |
const char * | _member, | ||
const std::vector< uint32_t > & | _default = std::vector<uint32_t>() ) |
std::vector< uint32_t > ot::json::getUIntVector | ( | const ConstJsonObject & | _value, |
const std::string & | _member, | ||
const std::vector< uint32_t > & | _default = std::vector<uint32_t>() ) |
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.
std::vector< uint32_t > ot::json::getUIntVector | ( | const JsonValue & | _value, |
const std::string & | _member, | ||
const std::vector< uint32_t > & | _default = std::vector<uint32_t>() ) |
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.
bool ot::json::isArray | ( | const ConstJsonArray & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a array.
bool ot::json::isArray | ( | const ConstJsonObject & | _value, |
const char * | _member ) |
Returns true if the specified object member is a array.
bool ot::json::isArray | ( | const ConstJsonObject & | _value, |
const std::string & | _member ) |
bool ot::json::isArray | ( | const JsonValue & | _value, |
const char * | _member ) |
Returns true if the specified object member is a array.
bool ot::json::isArray | ( | const JsonValue & | _value, |
const std::string & | _member ) |
bool ot::json::isArray | ( | const JsonValue & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a array.
bool ot::json::isBool | ( | const ConstJsonArray & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a bool.
bool ot::json::isBool | ( | const ConstJsonObject & | _value, |
const char * | _member ) |
Returns true if the specified object member is a bool.
bool ot::json::isBool | ( | const ConstJsonObject & | _value, |
const std::string & | _member ) |
bool ot::json::isBool | ( | const JsonValue & | _value, |
const char * | _member ) |
Returns true if the specified object member is a bool.
bool ot::json::isBool | ( | const JsonValue & | _value, |
const std::string & | _member ) |
bool ot::json::isBool | ( | const JsonValue & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a bool.
bool ot::json::isDouble | ( | const ConstJsonArray & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a double.
bool ot::json::isDouble | ( | const ConstJsonObject & | _value, |
const char * | _member ) |
Returns true if the specified object member is a double.
bool ot::json::isDouble | ( | const ConstJsonObject & | _value, |
const std::string & | _member ) |
bool ot::json::isDouble | ( | const JsonValue & | _value, |
const char * | _member ) |
Returns true if the specified object member is a double.
bool ot::json::isDouble | ( | const JsonValue & | _value, |
const std::string & | _member ) |
bool ot::json::isDouble | ( | const JsonValue & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a double.
bool ot::json::isFloat | ( | const ConstJsonArray & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a float.
bool ot::json::isFloat | ( | const ConstJsonObject & | _value, |
const char * | _member ) |
Returns true if the specified object member is a float.
bool ot::json::isFloat | ( | const ConstJsonObject & | _value, |
const std::string & | _member ) |
bool ot::json::isFloat | ( | const JsonValue & | _value, |
const char * | _member ) |
Returns true if the specified object member is a float.
bool ot::json::isFloat | ( | const JsonValue & | _value, |
const std::string & | _member ) |
bool ot::json::isFloat | ( | const JsonValue & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a float.
bool ot::json::isInt | ( | const ConstJsonArray & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a int.
bool ot::json::isInt | ( | const ConstJsonObject & | _value, |
const char * | _member ) |
Returns true if the specified object member is a int.
bool ot::json::isInt | ( | const ConstJsonObject & | _value, |
const std::string & | _member ) |
bool ot::json::isInt | ( | const JsonValue & | _value, |
const char * | _member ) |
Returns true if the specified object member is a int.
bool ot::json::isInt | ( | const JsonValue & | _value, |
const std::string & | _member ) |
bool ot::json::isInt | ( | const JsonValue & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a int.
bool ot::json::isInt64 | ( | const ConstJsonArray & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a int64.
bool ot::json::isInt64 | ( | const ConstJsonObject & | _value, |
const char * | _member ) |
Returns true if the specified object member is a int64.
bool ot::json::isInt64 | ( | const ConstJsonObject & | _value, |
const std::string & | _member ) |
bool ot::json::isInt64 | ( | const JsonValue & | _value, |
const char * | _member ) |
Returns true if the specified object member is a int64.
bool ot::json::isInt64 | ( | const JsonValue & | _value, |
const std::string & | _member ) |
bool ot::json::isInt64 | ( | const JsonValue & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a int64.
bool ot::json::isNull | ( | const ConstJsonArray & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a null.
bool ot::json::isNull | ( | const ConstJsonObject & | _value, |
const char * | _member ) |
Returns true if the specified object member is a null.
bool ot::json::isNull | ( | const ConstJsonObject & | _value, |
const std::string & | _member ) |
bool ot::json::isNull | ( | const JsonValue & | _value, |
const char * | _member ) |
Returns true if the specified object member is a null.
bool ot::json::isNull | ( | const JsonValue & | _value, |
const std::string & | _member ) |
bool ot::json::isNull | ( | const JsonValue & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a null.
bool ot::json::isObject | ( | const ConstJsonArray & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a object.
bool ot::json::isObject | ( | const ConstJsonObject & | _value, |
const char * | _member ) |
Returns true if the specified object member is a object.
bool ot::json::isObject | ( | const ConstJsonObject & | _value, |
const std::string & | _member ) |
bool ot::json::isObject | ( | const JsonValue & | _value, |
const char * | _member ) |
Returns true if the specified object member is a object.
bool ot::json::isObject | ( | const JsonValue & | _value, |
const std::string & | _member ) |
bool ot::json::isObject | ( | const JsonValue & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a object.
bool ot::json::isString | ( | const ConstJsonArray & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a string.
bool ot::json::isString | ( | const ConstJsonObject & | _value, |
const char * | _member ) |
Returns true if the specified object member is a string.
bool ot::json::isString | ( | const ConstJsonObject & | _value, |
const std::string & | _member ) |
bool ot::json::isString | ( | const JsonValue & | _value, |
const char * | _member ) |
Returns true if the specified object member is a string.
bool ot::json::isString | ( | const JsonValue & | _value, |
const std::string & | _member ) |
bool ot::json::isString | ( | const JsonValue & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a string.
bool ot::json::isUInt | ( | const ConstJsonArray & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a uInt.
bool ot::json::isUInt | ( | const ConstJsonObject & | _value, |
const char * | _member ) |
Returns true if the specified object member is a uInt.
bool ot::json::isUInt | ( | const ConstJsonObject & | _value, |
const std::string & | _member ) |
bool ot::json::isUInt | ( | const JsonValue & | _value, |
const char * | _member ) |
Returns true if the specified object member is a uInt.
bool ot::json::isUInt | ( | const JsonValue & | _value, |
const std::string & | _member ) |
bool ot::json::isUInt | ( | const JsonValue & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a uInt.
bool ot::json::isUInt64 | ( | const ConstJsonArray & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a uInt64.
bool ot::json::isUInt64 | ( | const ConstJsonObject & | _value, |
const char * | _member ) |
Returns true if the specified object member is a uInt64.
bool ot::json::isUInt64 | ( | const ConstJsonObject & | _value, |
const std::string & | _member ) |
bool ot::json::isUInt64 | ( | const JsonValue & | _value, |
const char * | _member ) |
Returns true if the specified object member is a uInt64.
bool ot::json::isUInt64 | ( | const JsonValue & | _value, |
const std::string & | _member ) |
bool ot::json::isUInt64 | ( | const JsonValue & | _value, |
unsigned int | _ix ) |
Returns true if the specified array entry is a uInt64.