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::LoggerPtr log)

Detailed Description

Converting business objects to protobuf and vice versa

Constructor & Destructor Documentation

iroha::model::converters::PbQueryFactory::PbQueryFactory ( logger::LoggerPtr  log)

Member Function Documentation

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

Convert proto query to model query

pb_block- reference to proto query
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

query- model query to serialize
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: