CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
carta::Json Class Reference

#include <Json.h>

Collaboration diagram for carta::Json:
[legend]

Static Public Member Functions

static jsonSchema (std::string object_type)
 
static json_schema::json_validator & Validator (std::string object_type)
 

Static Private Attributes

static const std::unordered_map< std::string, std::string_view > _schema_strings
 
static std::unordered_map< std::string, json_schemas {}
 
static std::unordered_map< std::string, json_schema::json_validator > _validators {}
 

Member Function Documentation

◆ Schema()

json & Json::Schema ( std::string  object_type)
static
Here is the caller graph for this function:

◆ Validator()

json_schema::json_validator & Json::Validator ( std::string  object_type)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _schema_strings

const std::unordered_map< std::string, std::string_view > Json::_schema_strings
staticprivate
Initial value:
{{"layout", CARTASCHEMA::layout_schema_2},
{"preferences", CARTASCHEMA::preferences_schema_2}, {"snippet", CARTASCHEMA::snippet_schema_1},
{"workspace", CARTASCHEMA::workspace_schema_1}, {"backend", CARTASCHEMA::preference_backend_schema_2}}

◆ _schemas

std::unordered_map< std::string, json > Json::_schemas {}
staticprivate

◆ _validators

std::unordered_map< std::string, json_schema::json_validator > Json::_validators {}
staticprivate

The documentation for this class was generated from the following files: