Classes | |
class | ot::intern::JSONManager |
Namespaces | |
namespace | ot |
namespace | ot::intern |
Macros | |
#define | OT_JSON_checkMemberExists(___object, ___memberName, ___errorAction) if (!___object.HasMember(___memberName)) { OT_LOG_E("JSON object member \"" + std::string(___memberName) + "\" missing"); ___errorAction; } |
#define | OT_JSON_createMemberIterator(___object, ___memberName, ___iteratorName) ot::JsonMemberIterator ___iteratorName = ___object.FindMember(___memberName) |
#define | OT_JSON_checkMemberIteratorType(___it, ___memberName, ___memberType, ___errorAction) if (!___it->value.Is##___memberType()) { OT_LOG_E("JSON object member \"" + std::string(___memberName) + "\" is not a " #___memberType); ___errorAction; } |
#define | OT_JSON_getFromObject(___object, ___memberName, ___memberType, ___errorAction) |
#define | OT_JSON_getListFromObject(___object, ___memberName, ___entryType, ___list, ___errorAction) |
#define | OT_JSON_getArrayFromObject(___object, ___memberName, ___entryType, ___entryTypeJson, ___sizeMember) |
#define | OT_JSON_checkArrayEntry(___array, ___ix, ___entryType, ___errorAction) if (!_value[_ix].Is##___entryType()) { OT_LOG_E("Array entry \"" + std::to_string(_ix) + "\" is not a " #___entryType); ___errorAction; } |
#define | OT_JSON_getFromArray(___array, ___ix, ___entryType, ___errorAction) |
#define | OT_JSON_getListFromArray(___array, ___ix, ___entryType, ___list, ___errorAction) |
#define OT_JSON_checkArrayEntry | ( | ___array, | |
___ix, | |||
___entryType, | |||
___errorAction ) if (!_value[_ix].Is##___entryType()) { OT_LOG_E("Array entry \"" + std::to_string(_ix) + "\" is not a " #___entryType); ___errorAction; } |
#define OT_JSON_checkMemberExists | ( | ___object, | |
___memberName, | |||
___errorAction ) if (!___object.HasMember(___memberName)) { OT_LOG_E("JSON object member \"" + std::string(___memberName) + "\" missing"); ___errorAction; } |
#define OT_JSON_checkMemberIteratorType | ( | ___it, | |
___memberName, | |||
___memberType, | |||
___errorAction ) if (!___it->value.Is##___memberType()) { OT_LOG_E("JSON object member \"" + std::string(___memberName) + "\" is not a " #___memberType); ___errorAction; } |
#define OT_JSON_createMemberIterator | ( | ___object, | |
___memberName, | |||
___iteratorName ) ot::JsonMemberIterator ___iteratorName = ___object.FindMember(___memberName) |
#define OT_JSON_getArrayFromObject | ( | ___object, | |
___memberName, | |||
___entryType, | |||
___entryTypeJson, | |||
___sizeMember ) |
#define OT_JSON_getFromArray | ( | ___array, | |
___ix, | |||
___entryType, | |||
___errorAction ) |
#define OT_JSON_getFromObject | ( | ___object, | |
___memberName, | |||
___memberType, | |||
___errorAction ) |
#define OT_JSON_getListFromArray | ( | ___array, | |
___ix, | |||
___entryType, | |||
___list, | |||
___errorAction ) |
#define OT_JSON_getListFromObject | ( | ___object, | |
___memberName, | |||
___entryType, | |||
___list, | |||
___errorAction ) |