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.hpp File Reference
#include <absl/hash/hash.h>
#include "feature.pb.h"
#include "parser.hpp"

Go to the source code of this file.

Namespaces

namespace  dcn
 
namespace  dcn::parse
 

Functions

template<typename H >
H dcn::AbslHashValue (H h, const TransformationDef &td)
 Combines hash values for a TransformationDef object.
 
template<typename H >
H dcn::AbslHashValue (H h, const Dimension &d)
 Combines hash values for a Dimension object.
 
template<typename H >
H dcn::AbslHashValue (H h, const Feature &f)
 Combines hash values for a Feature object.
 
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, use_json_t)
 Parses a JSON object to a Dimension 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 Feature 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 Feature object using Protobuf.
 
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.