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

#include "pb_query_factory.hpp"

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

Public Member Functions

optional_ptr< model::Querydeserialize (const protocol::Query &pb_query) const
 
boost::optional< protocol::Query > serialize (std::shared_ptr< const model::Query > query) const
 
 PbQueryFactory (logger::Logger log=logger::log("PbQueryFactory"))
 

Detailed Description

Converting business objects to protobuf and vice versa

Constructor & Destructor Documentation

iroha::model::converters::PbQueryFactory::PbQueryFactory ( logger::Logger  log = logger::log("PbQueryFactory"))
explicit

Member Function Documentation

optional_ptr< model::Query > iroha::model::converters::PbQueryFactory::deserialize ( const protocol::Query &  pb_query) const

Convert proto query to model query

Parameters
pb_block- reference to proto query
Returns
model Query

Here is the call graph for this function:

boost::optional< protocol::Query > iroha::model::converters::PbQueryFactory::serialize ( std::shared_ptr< const model::Query query) const

Convert model query to proto query

Parameters
query- model query to serialize
Returns
boost::noneif no query type is found

Here is the caller graph for this function:


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