Blue Brain BioExplorer
jsonPropertyMap.h File Reference
Include dependency graph for jsonPropertyMap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 core
 

Functions

void core::_addPropertyMapSchema (const PropertyMap &propertyMap, const std::string &title, rapidjson::Document::AllocatorType &allocator, rapidjson::Value &propSchema)
 
void core::_addPropertyMapOneOfSchema (const std::vector< std::pair< std::string, PropertyMap >> &objs, rapidjson::Document::AllocatorType &allocator, rapidjson::Value &oneOf)
 
std::string core::buildJsonRpcSchemaRequestPropertyMaps (const RpcDescription &desc, const std::vector< std::pair< std::string, PropertyMap >> &objs)
 
std::string core::buildJsonRpcSchemaRequestPropertyMap (const RpcDescription &desc, const PropertyMap &obj)
 
std::string core::buildJsonRpcSchemaRequestPropertyMap (const RpcParameterDescription &desc, const PropertyMap &input, const PropertyMap &output)
 
std::string core::buildJsonRpcSchemaNotifyPropertyMaps (const RpcParameterDescription &desc, const std::vector< std::pair< std::string, PropertyMap >> &objs)
 
std::string core::buildJsonRpcSchemaNotifyPropertyMap (const RpcParameterDescription &desc, const PropertyMap &properties)
 
template<>
std::string core::buildJsonSchema (std::vector< std::pair< std::string, PropertyMap >> &objs, const std::string &title)
 
template<>
std::string core::buildJsonSchema (const PropertyMap &property, const std::string &title)
 
template<>
std::string to_json (const core::PropertyMap &obj)
 
template<typename T >
getValue (const rapidjson::GenericValue< rapidjson::UTF8<>> &v)
 
template<>
double getValue (const rapidjson::GenericValue< rapidjson::UTF8<>> &v)
 
template<typename T >
bool isValue (const rapidjson::GenericValue< rapidjson::UTF8<>> &v)
 
template<>
bool isValue< double > (const rapidjson::GenericValue< rapidjson::UTF8<>> &v)
 
template<>
bool isValue< int > (const rapidjson::GenericValue< rapidjson::UTF8<>> &v)
 
template<>
bool isValue< std::string > (const rapidjson::GenericValue< rapidjson::UTF8<>> &v)
 
template<>
bool isValue< bool > (const rapidjson::GenericValue< rapidjson::UTF8<>> &v)
 
template<typename T , size_t S>
bool get_array (const rapidjson::Value &v, std::array< T, S > &val)
 
template<typename T >
bool get_property (const rapidjson::Value &v, T &val)
 
template<>
bool from_json (core::PropertyMap &obj, const std::string &json)
 
core::PropertyMap jsonToPropertyMap (const std::string &json)
 

Function Documentation

◆ from_json()

template<>
bool from_json ( core::PropertyMap obj,
const std::string &  json 
)
inline

Definition at line 663 of file jsonPropertyMap.h.

◆ get_array()

template<typename T , size_t S>
bool get_array ( const rapidjson::Value &  v,
std::array< T, S > &  val 
)

Definition at line 638 of file jsonPropertyMap.h.

◆ get_property()

template<typename T >
bool get_property ( const rapidjson::Value &  v,
T &  val 
)

Definition at line 653 of file jsonPropertyMap.h.

◆ getValue() [1/2]

template<typename T >
T getValue ( const rapidjson::GenericValue< rapidjson::UTF8<>> &  v)

Definition at line 590 of file jsonPropertyMap.h.

◆ getValue() [2/2]

template<>
bool getValue ( const rapidjson::GenericValue< rapidjson::UTF8<>> &  v)

Definition at line 590 of file jsonPropertyMap.h.

◆ isValue()

template<typename T >
bool isValue ( const rapidjson::GenericValue< rapidjson::UTF8<>> &  v)

◆ isValue< bool >()

template<>
bool isValue< bool > ( const rapidjson::GenericValue< rapidjson::UTF8<>> &  v)

Definition at line 630 of file jsonPropertyMap.h.

◆ isValue< double >()

template<>
bool isValue< double > ( const rapidjson::GenericValue< rapidjson::UTF8<>> &  v)

Definition at line 615 of file jsonPropertyMap.h.

◆ isValue< int >()

template<>
bool isValue< int > ( const rapidjson::GenericValue< rapidjson::UTF8<>> &  v)

Definition at line 620 of file jsonPropertyMap.h.

◆ isValue< std::string >()

template<>
bool isValue< std::string > ( const rapidjson::GenericValue< rapidjson::UTF8<>> &  v)

Definition at line 625 of file jsonPropertyMap.h.

◆ jsonToPropertyMap()

core::PropertyMap jsonToPropertyMap ( const std::string &  json)

Definition at line 669 of file jsonPropertyMap.h.

◆ to_json()

template<>
std::string to_json ( const core::PropertyMap obj)
inline

Definition at line 517 of file jsonPropertyMap.h.