![]() |
Open Lighting Architecture
Latest Git
|
Enums used to identfy JSON types.


Go to the source code of this file.
Namespaces | |
| ola | |
| The namespace containing all OLA symbols. | |
| ola::web | |
| Classes to deal with web services. | |
Enumerations | |
| enum | ola::web::JsonType { ola::web::JSON_ARRAY, ola::web::JSON_BOOLEAN, ola::web::JSON_INTEGER, ola::web::JSON_NULL, ola::web::JSON_NUMBER, ola::web::JSON_OBJECT, ola::web::JSON_STRING, ola::web::JSON_UNDEFINED } |
| The type of JSON data element. More... | |
Functions | |
| string | ola::web::JsonTypeToString (JsonType type) |
| Get the string corresponding to a JsonType. More... | |
| JsonType | ola::web::StringToJsonType (const std::string &type) |
| Convert a string to a JsonType. More... | |
| template<typename T > | |
| JsonType | ola::web::TypeFromValue (const T &) |
| Given a value, return the JsonType this value corresponds to. | |
| template<typename T > | |
| std::string | ola::web::GetTypename (const T &t) |
| Given a value, return the string name this value corresponds to. | |
| template<> | |
| JsonType | ola::web::TypeFromValue< std::string > (const std::string &) |
| template<> | |
| JsonType | ola::web::TypeFromValue< bool > (const bool &) |
| template<> | |
| JsonType | ola::web::TypeFromValue< uint32_t > (const uint32_t &) |
| template<> | |
| JsonType | ola::web::TypeFromValue< int32_t > (const int32_t &) |
| template<> | |
| JsonType | ola::web::TypeFromValue< uint64_t > (const uint64_t &) |
| template<> | |
| JsonType | ola::web::TypeFromValue< int64_t > (const int64_t &) |
| template<> | |
| JsonType | ola::web::TypeFromValue< double > (const double &) |
1.8.13