hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::model::converters::JsonQueryFactory Class Reference

#include "json_query_factory.hpp"

Collaboration diagram for iroha::model::converters::JsonQueryFactory:
Collaboration graph

Public Member Functions

 JsonQueryFactory (logger::LoggerPtr log)
 
optional_ptr< Querydeserialize (const std::string &query_json)
 
std::string serialize (std::shared_ptr< const model::Query > model_query)
 

Constructor & Destructor Documentation

iroha::model::converters::JsonQueryFactory::JsonQueryFactory ( logger::LoggerPtr  log)
explicit

Member Function Documentation

optional_ptr< Query > iroha::model::converters::JsonQueryFactory::deserialize ( const std::string &  query_json)

get query from string json

Parameters
query_jsonstring representation of query
Returns
deserialized query

Here is the call graph for this function:

Here is the caller graph for this function:

std::string iroha::model::converters::JsonQueryFactory::serialize ( std::shared_ptr< const model::Query model_query)

Convert model Query to json string

Parameters
model_query- model representation of query
Returns
serialized Query in json format

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: