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
condition.hpp File Reference
#include <string>
#include <regex>
#include <algorithm>
#include <absl/hash/hash.h>
#include <spdlog/spdlog.h>
#include "condition.pb.h"
#include "parser.hpp"

Go to the source code of this file.

Namespaces

namespace  dcn
 
namespace  dcn::parse
 

Functions

template<typename H >
dcn::AbslHashValue (H h, const Condition &c)
 Combines hash values for a Condition object.
 
std::string dcn::constructConditionSolidityCode (const Condition &condition)
 
template<>
Result< jsondcn::parse::parseToJson (Condition condition, use_json_t)
 Parses a condition object to a JSON object.
 
template<>
Result< Condition > dcn::parse::parseFromJson (json json_obj, use_json_t)
 Parses a JSON object to a condition object.
 
template<>
Result< std::string > dcn::parse::parseToJson (Condition condition, use_protobuf_t)
 Converts a condition object to a JSON string using protobuf.
 
template<>
Result< Condition > dcn::parse::parseFromJson (std::string json_str, use_protobuf_t)
 Parses a JSON string to a condition object using Protobuf.
 
template<>
Result< jsondcn::parse::parseToJson (ConditionRecord condition_record, use_json_t)
 Converts a ConditionRecord object to a JSON object.
 
template<>
Result< std::string > dcn::parse::parseToJson (ConditionRecord condition_record, use_protobuf_t)
 Converts a ConditionRecord object to a JSON string using Protobuf.
 
template<>
Result< ConditionRecord > dcn::parse::parseFromJson (json json_obj, use_json_t)
 Parses a JSON object to a ConditionRecord object.
 
template<>
Result< ConditionRecord > dcn::parse::parseFromJson (std::string json_str, use_protobuf_t)
 Parses a JSON string to a ConditionRecord object using Protobuf.