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

#include "pb_block_factory.hpp"

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

Public Member Functions

 PbBlockFactory ()
 
protocol::Block serialize (const model::Block &block) const
 
model::Block deserialize (const protocol::Block &pb_block) const
 

Detailed Description

Converting business objects to protobuf and vice versa

Constructor & Destructor Documentation

iroha::model::converters::PbBlockFactory::PbBlockFactory ( )
inline

Here is the call graph for this function:

Member Function Documentation

model::Block iroha::model::converters::PbBlockFactory::deserialize ( const protocol::Block &  pb_block) const

Convert proto block to model block

Parameters
pb_block- reference to proto block
Returns
model block

Here is the call graph for this function:

Here is the caller graph for this function:

protocol::Block iroha::model::converters::PbBlockFactory::serialize ( const model::Block block) const

Convert block to proto block

Parameters
block- reference to block
Returns
proto block

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: