#include <string>
#include <regex>
#include <algorithm>
#include <absl/hash/hash.h>
#include <spdlog/spdlog.h>
#include "transformation.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 Transformation &t) |
Combines hash values for a Transformation object. | |
std::string | dcn::constructTransformationSolidityCode (const Transformation &transformation) |
std::optional< json > | dcn::parse::parseToJson (Transformation transformation, use_json_t) |
Parses a Transformation object to a JSON object. | |
template<> | |
std::optional< TransformationDef > | dcn::parse::parseFromJson (json json, use_json_t) |
Parses a JSON object to a TransformationDef object. | |
std::optional< std::string > | dcn::parse::parseToJson (Transformation transformation, use_protobuf_t) |
Converts a Transformation object to a JSON string using protobuf. | |
template<> | |
std::optional< Dimension > | dcn::parse::parseFromJson (std::string json_str, use_protobuf_t) |
Parses a JSON string to a Dimension object. | |
std::optional< json > | dcn::parse::parseToJson (TransformationRecord transformation_record, use_json_t) |
Converts a TransformationRecord object to a JSON object. | |
std::optional< std::string > | dcn::parse::parseToJson (TransformationRecord transformation_record, use_protobuf_t) |
Converts a TransformationRecord object to a JSON string using Protobuf. | |
template<> | |
std::optional< TransformationRecord > | dcn::parse::parseFromJson (json json_obj, use_json_t) |
Parses a JSON object to a TransformationRecord object. | |
template<> | |
std::optional< TransformationRecord > | dcn::parse::parseFromJson (std::string json_str, use_protobuf_t) |
Parses a JSON string to a TransformationRecord object using Protobuf. | |