nx_cloud_storage_sdk
1.0
Cloud Storage SDK
|
#include <data.h>
Public Member Functions | |
PluginManifest (const char *jsonStr) noexcept(false) | |
PluginManifest (const nx::kit::Json &json) noexcept(false) | |
PluginManifest (const std::string &id, const std::string &name, const std::string &description, const std::string &version, const std::string &vendor) | |
template<typename T > | |
PluginManifest (const T &)=delete | |
bool | operator== (const PluginManifest &) const |
nx::kit::Json | to_json () const |
Static Public Member Functions | |
static ValueOrError< PluginManifest > | fromJson (const char *jsonStr) noexcept |
static ValueOrError< PluginManifest > | fromJson (const nx::kit::Json &json) noexcept |
Public Attributes | |
std::string | id |
std::string | name |
std::string | description |
std::string | version |
std::string | vendor |
Every data structure here has two alternative ways of constructing from the string and json: 1) Constructors which throw exception on invalid data. 2) static fromJson
functions which never throw and return error if parsing fails.