Go to the source code of this file.
Classes | |
| struct | dcn::parse::use_protobuf_t |
| A tag type to indicate whether to use Protobuf or JSON for parsing. More... | |
| struct | dcn::parse::use_json_t |
| A tag type to indicate whether to use Protobuf or JSON for parsing. More... | |
Namespaces | |
| namespace | dcn |
| namespace | dcn::parse |
Typedefs | |
| using | json = nlohmann::json |
Functions | |
| template<class T > | |
| Result< T > | dcn::parse::parseFromJson (json json, use_json_t) |
| Converts a JSON string to a T using JSON. | |
| template<class T > | |
| Result< T > | dcn::parse::parseFromJson (std::string json_str, use_protobuf_t) |
| Converts a JSON string to a T using Protobuf. | |
| template<class T > | |
| Result< json > | dcn::parse::parseToJson (T message, use_json_t) |
| Converts a T to a JSON object using JSON. | |
| template<class T > | |
| Result< std::string > | dcn::parse::parseToJson (T message, use_protobuf_t) |
| Converts a T to a JSON string using Protobuf. | |
| using json = nlohmann::json |