|
Twitch SDK (Internal)
|
#include "twitchsdk/core/json/value.h"#include "twitchsdk/core/json/reader.h"#include "twitchsdk/core/json/writer.h"#include "twitchsdk/core/json/corejsonutil.h"#include "twitchsdk/core/types/coretypes.h"#include "twitchsdk/core/stringutilities.h"Go to the source code of this file.
Namespaces | |
| ttv | |
| JSON (JavaScript Object Notation). | |
| ttv::json | |
Typedefs | |
| template<typename ObjectType > | |
| using | ttv::json::DefaultSchema = typename DefaultSchemaProvider< ObjectType >::Type |
Functions | |
| template<typename ObjectType > | |
| bool | ttv::json::ToJson (const ObjectType &object, ttv::json::Value &value) |
| template<typename ObjectType > | |
| bool | ttv::json::ToJsonString (const ObjectType &object, std::string &jsonString) |
| template<typename ObjectType > | |
| bool | ttv::json::ToObject (const ttv::json::Value &value, ObjectType &object) |
| template<typename ObjectType > | |
| bool | ttv::json::ToObject (const std::string &jsonString, ObjectType &object) |
| template<typename ObjectType > | |
| bool | ttv::json::ToObject (const char *jsonString, ObjectType &object) |
| template<typename EnumType > | |
| auto | ttv::json::make_enum_mapping (const char *string, EnumType value) |
| template<typename SchemaType , typename RequiredType , typename ObjectType > | |
| auto | ttv::json::make_field (const char *key, ObjectType &field) |
| template<typename SchemaType , typename RequiredType , typename ObjectType , size_t ArraySize> | |
| auto | ttv::json::make_field (const std::array< const char *, ArraySize > &keyPath, ObjectType &field) |
| template<typename RequiredType , typename ObjectType > | |
| auto | ttv::json::make_field (const char *key, ObjectType &field) |
| template<typename RequiredType , typename ObjectType , size_t ArraySize> | |
| auto | ttv::json::make_field (const std::array< const char *, ArraySize > &keyPath, ObjectType &field) |
| template<typename ObjectType > | |
| auto | ttv::json::make_field (const char *key, ObjectType &field) |
| template<typename ObjectType , size_t ArraySize> | |
| auto | ttv::json::make_field (const std::array< const char *, ArraySize > &keyPath, ObjectType &field) |
| template<typename ... Args> | |
| std::array< const char *, sizeof...(Args)> | ttv::json::MakeKeyPath (Args... args) |
| struct ttv::json::DefaultSchemaProvider |
Partial specializations of the DefaultSchemaProvider struct provide the default schema for a given type. These specializations conform to the following concept:
Where ObjectType is the type to serialize/deserialize, and the SchemaType is the desired schema to use by default for serializing and deserializing objects of ObjectType.
| struct ttv::json::DefaultSchemaProvider |
Partial specializations of the DefaultSchemaProvider struct provide the default schema for a given type. These specializations conform to the following concept:
Where ObjectType is the type to serialize/deserialize, and the SchemaType is the desired schema to use by default for serializing and deserializing objects of ObjectType.
| struct ttv::json::DefaultSchemaProvider< IntegralType, std::enable_if_t< std::is_integral< IntegralType >::value > > |
| Class Members | ||
|---|---|---|
| typedef IntegerSchema | Type | |
| struct ttv::json::DefaultSchemaProvider< FloatingPointType, std::enable_if_t< std::is_floating_point< FloatingPointType >::value > > |
| Class Members | ||
|---|---|---|
| typedef FloatingPointSchema | Type | |
| struct ttv::json::DefaultSchemaProvider< std::string > |
| Class Members | ||
|---|---|---|
| typedef StringSchema | Type | |
| struct ttv::json::DefaultSchemaProvider< bool > |
| Class Members | ||
|---|---|---|
| typedef BooleanSchema | Type | |
| struct ttv::json::DefaultSchemaProvider< std::vector< ElementType > > |
| Class Members | ||
|---|---|---|
|
typedef ArraySchema < DefaultSchema< ElementType > , ElementType > |
Type | |
1.8.13