Decentralised Art Server
High-performance C++ backend that exposes HTML interface and a secure REST API for managing Performative Transactions entities
 
Loading...
Searching...
No Matches
feature.cpp File Reference
#include "feature.hpp"

Namespaces

namespace  dcn
 
namespace  dcn::parse
 

Functions

std::string dcn::constructFeatureSolidityCode (const Feature &feature)
 
std::optional< jsondcn::parse::parseToJson (TransformationDef transform_def, use_json_t)
 Parses a TransformationDef object to a JSON object.
 
template<>
std::optional< TransformationDefdcn::parse::parseFromJson (json json, use_json_t)
 Parses a JSON object to a TransformationDef object.
 
std::optional< jsondcn::parse::parseToJson (Dimension dimension, use_json_t)
 Parses a Dimension object to a JSON object.
 
template<>
std::optional< Dimensiondcn::parse::parseFromJson (json json_obj, use_json_t)
 Parses a JSON object to a TransformationDef object.
 
std::optional< std::string > dcn::parse::parseToJson (Dimension dimension, use_protobuf_t)
 Parses a Dimension object to a JSON string using Protobuf.
 
template<>
std::optional< Dimensiondcn::parse::parseFromJson (std::string json_str, use_protobuf_t)
 Parses a JSON string to a Dimension object.
 
std::optional< jsondcn::parse::parseToJson (Feature feature, use_json_t)
 Parses a Feature object to a JSON object.
 
template<>
std::optional< Featuredcn::parse::parseFromJson (json json_obj, use_json_t)
 Parses a JSON object to a TransformationDef object.
 
std::optional< std::string > dcn::parse::parseToJson (Feature feature, use_protobuf_t)
 Converts a Feature object to a JSON string using protobuf.
 
template<>
std::optional< Featuredcn::parse::parseFromJson (std::string json_str, use_protobuf_t)
 Parses a JSON string to a Dimension object.
 
std::optional< jsondcn::parse::parseToJson (FeatureRecord feature, use_json_t)
 
std::optional< std::string > dcn::parse::parseToJson (FeatureRecord feature_record, use_protobuf_t)
 
template<>
std::optional< FeatureRecorddcn::parse::parseFromJson (json json_obj, use_json_t)
 Parses a JSON object to a TransformationDef object.
 
template<>
std::optional< FeatureRecorddcn::parse::parseFromJson (std::string json_str, use_protobuf_t)
 Parses a JSON string to a Dimension object.