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

#include "pb_command_factory.hpp"

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

Public Member Functions

 PbCommandFactory ()
 
protocol::AddAssetQuantity serializeAddAssetQuantity (const model::AddAssetQuantity &addAssetQuantity)
 
model::AddAssetQuantity deserializeAddAssetQuantity (const protocol::AddAssetQuantity &addAssetQuantity)
 
protocol::SubtractAssetQuantity serializeSubtractAssetQuantity (const model::SubtractAssetQuantity &subtractAssetQuantity)
 
model::SubtractAssetQuantity deserializeSubtractAssetQuantity (const protocol::SubtractAssetQuantity &subtractAssetQuantity)
 
protocol::AddPeer serializeAddPeer (const model::AddPeer &addPeer)
 
model::AddPeer deserializeAddPeer (const protocol::AddPeer &addPeer)
 
protocol::AddSignatory serializeAddSignatory (const model::AddSignatory &addSignatory)
 
model::AddSignatory deserializeAddSignatory (const protocol::AddSignatory &addSignatory)
 
protocol::CreateAsset serializeCreateAsset (const model::CreateAsset &createAsset)
 
model::CreateAsset deserializeCreateAsset (const protocol::CreateAsset &createAsset)
 
protocol::CreateAccount serializeCreateAccount (const model::CreateAccount &createAccount)
 
model::CreateAccount deserializeCreateAccount (const protocol::CreateAccount &createAccount)
 
protocol::CreateDomain serializeCreateDomain (const model::CreateDomain &createDomain)
 
model::CreateDomain deserializeCreateDomain (const protocol::CreateDomain &createDomain)
 
protocol::RemoveSignatory serializeRemoveSignatory (const model::RemoveSignatory &removeSignatory)
 
model::RemoveSignatory deserializeRemoveSignatory (const protocol::RemoveSignatory &removeSignatory)
 
protocol::SetAccountQuorum serializeSetQuorum (const model::SetQuorum &setAccountQuorum)
 
model::SetQuorum deserializeSetQuorum (const protocol::SetAccountQuorum &setAccountQuorum)
 
protocol::TransferAsset serializeTransferAsset (const model::TransferAsset &subtractAssetQuantity)
 
model::TransferAsset deserializeTransferAsset (const protocol::TransferAsset &subtractAssetQuantity)
 
protocol::AppendRole serializeAppendRole (const model::AppendRole &command)
 
model::AppendRole deserializeAppendRole (const protocol::AppendRole &command)
 
protocol::DetachRole serializeDetachRole (const model::DetachRole &command)
 
model::DetachRole deserializeDetachRole (const protocol::DetachRole &command)
 
protocol::CreateRole serializeCreateRole (const model::CreateRole &command)
 
model::CreateRole deserializeCreateRole (const protocol::CreateRole &command)
 
protocol::GrantPermission serializeGrantPermission (const model::GrantPermission &command)
 
model::GrantPermission deserializeGrantPermission (const protocol::GrantPermission &command)
 
protocol::RevokePermission serializeRevokePermission (const model::RevokePermission &command)
 
model::RevokePermission deserializeRevokePermission (const protocol::RevokePermission &command)
 
protocol::SetAccountDetail serializeSetAccountDetail (const model::SetAccountDetail &command)
 
model::SetAccountDetail deserializeSetAccountDetail (const protocol::SetAccountDetail &command)
 
protocol::Command serializeAbstractCommand (const model::Command &command)
 
std::shared_ptr< model::CommanddeserializeAbstractCommand (const protocol::Command &command)
 

Protected Attributes

boost::bimap< iroha::protocol::RolePermission, std::string > pb_role_map_
 
boost::bimap< iroha::protocol::GrantablePermission, std::string > pb_grant_map_
 

Detailed Description

Converting commands and proto commands

Constructor & Destructor Documentation

◆ PbCommandFactory()

iroha::model::converters::PbCommandFactory::PbCommandFactory ( )

Member Function Documentation

◆ deserializeAbstractCommand()

std::shared_ptr< model::Command > iroha::model::converters::PbCommandFactory::deserializeAbstractCommand ( const protocol::Command &  command)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deserializeAddAssetQuantity()

model::AddAssetQuantity iroha::model::converters::PbCommandFactory::deserializeAddAssetQuantity ( const protocol::AddAssetQuantity &  addAssetQuantity)
Here is the caller graph for this function:

◆ deserializeAddPeer()

model::AddPeer iroha::model::converters::PbCommandFactory::deserializeAddPeer ( const protocol::AddPeer &  addPeer)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deserializeAddSignatory()

model::AddSignatory iroha::model::converters::PbCommandFactory::deserializeAddSignatory ( const protocol::AddSignatory &  addSignatory)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deserializeAppendRole()

model::AppendRole iroha::model::converters::PbCommandFactory::deserializeAppendRole ( const protocol::AppendRole &  command)
Here is the caller graph for this function:

◆ deserializeCreateAccount()

model::CreateAccount iroha::model::converters::PbCommandFactory::deserializeCreateAccount ( const protocol::CreateAccount &  createAccount)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deserializeCreateAsset()

model::CreateAsset iroha::model::converters::PbCommandFactory::deserializeCreateAsset ( const protocol::CreateAsset &  createAsset)
Here is the caller graph for this function:

◆ deserializeCreateDomain()

model::CreateDomain iroha::model::converters::PbCommandFactory::deserializeCreateDomain ( const protocol::CreateDomain &  createDomain)
Here is the caller graph for this function:

◆ deserializeCreateRole()

model::CreateRole iroha::model::converters::PbCommandFactory::deserializeCreateRole ( const protocol::CreateRole &  command)
Here is the caller graph for this function:

◆ deserializeDetachRole()

model::DetachRole iroha::model::converters::PbCommandFactory::deserializeDetachRole ( const protocol::DetachRole &  command)
Here is the caller graph for this function:

◆ deserializeGrantPermission()

model::GrantPermission iroha::model::converters::PbCommandFactory::deserializeGrantPermission ( const protocol::GrantPermission &  command)
Here is the caller graph for this function:

◆ deserializeRemoveSignatory()

model::RemoveSignatory iroha::model::converters::PbCommandFactory::deserializeRemoveSignatory ( const protocol::RemoveSignatory &  removeSignatory)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deserializeRevokePermission()

model::RevokePermission iroha::model::converters::PbCommandFactory::deserializeRevokePermission ( const protocol::RevokePermission &  command)
Here is the caller graph for this function:

◆ deserializeSetAccountDetail()

model::SetAccountDetail iroha::model::converters::PbCommandFactory::deserializeSetAccountDetail ( const protocol::SetAccountDetail &  command)
Here is the caller graph for this function:

◆ deserializeSetQuorum()

model::SetQuorum iroha::model::converters::PbCommandFactory::deserializeSetQuorum ( const protocol::SetAccountQuorum &  setAccountQuorum)
Here is the caller graph for this function:

◆ deserializeSubtractAssetQuantity()

model::SubtractAssetQuantity iroha::model::converters::PbCommandFactory::deserializeSubtractAssetQuantity ( const protocol::SubtractAssetQuantity &  subtractAssetQuantity)
Here is the caller graph for this function:

◆ deserializeTransferAsset()

model::TransferAsset iroha::model::converters::PbCommandFactory::deserializeTransferAsset ( const protocol::TransferAsset &  subtractAssetQuantity)
Here is the caller graph for this function:

◆ serializeAbstractCommand()

protocol::Command iroha::model::converters::PbCommandFactory::serializeAbstractCommand ( const model::Command command)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ serializeAddAssetQuantity()

protocol::AddAssetQuantity iroha::model::converters::PbCommandFactory::serializeAddAssetQuantity ( const model::AddAssetQuantity addAssetQuantity)
Here is the caller graph for this function:

◆ serializeAddPeer()

protocol::AddPeer iroha::model::converters::PbCommandFactory::serializeAddPeer ( const model::AddPeer addPeer)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ serializeAddSignatory()

protocol::AddSignatory iroha::model::converters::PbCommandFactory::serializeAddSignatory ( const model::AddSignatory addSignatory)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ serializeAppendRole()

protocol::AppendRole iroha::model::converters::PbCommandFactory::serializeAppendRole ( const model::AppendRole command)
Here is the caller graph for this function:

◆ serializeCreateAccount()

protocol::CreateAccount iroha::model::converters::PbCommandFactory::serializeCreateAccount ( const model::CreateAccount createAccount)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ serializeCreateAsset()

protocol::CreateAsset iroha::model::converters::PbCommandFactory::serializeCreateAsset ( const model::CreateAsset createAsset)
Here is the caller graph for this function:

◆ serializeCreateDomain()

protocol::CreateDomain iroha::model::converters::PbCommandFactory::serializeCreateDomain ( const model::CreateDomain createDomain)
Here is the caller graph for this function:

◆ serializeCreateRole()

protocol::CreateRole iroha::model::converters::PbCommandFactory::serializeCreateRole ( const model::CreateRole command)
Here is the caller graph for this function:

◆ serializeDetachRole()

protocol::DetachRole iroha::model::converters::PbCommandFactory::serializeDetachRole ( const model::DetachRole command)
Here is the caller graph for this function:

◆ serializeGrantPermission()

protocol::GrantPermission iroha::model::converters::PbCommandFactory::serializeGrantPermission ( const model::GrantPermission command)
Here is the caller graph for this function:

◆ serializeRemoveSignatory()

protocol::RemoveSignatory iroha::model::converters::PbCommandFactory::serializeRemoveSignatory ( const model::RemoveSignatory removeSignatory)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ serializeRevokePermission()

protocol::RevokePermission iroha::model::converters::PbCommandFactory::serializeRevokePermission ( const model::RevokePermission command)
Here is the caller graph for this function:

◆ serializeSetAccountDetail()

protocol::SetAccountDetail iroha::model::converters::PbCommandFactory::serializeSetAccountDetail ( const model::SetAccountDetail command)
Here is the caller graph for this function:

◆ serializeSetQuorum()

protocol::SetAccountQuorum iroha::model::converters::PbCommandFactory::serializeSetQuorum ( const model::SetQuorum setAccountQuorum)
Here is the caller graph for this function:

◆ serializeSubtractAssetQuantity()

protocol::SubtractAssetQuantity iroha::model::converters::PbCommandFactory::serializeSubtractAssetQuantity ( const model::SubtractAssetQuantity subtractAssetQuantity)
Here is the caller graph for this function:

◆ serializeTransferAsset()

protocol::TransferAsset iroha::model::converters::PbCommandFactory::serializeTransferAsset ( const model::TransferAsset subtractAssetQuantity)
Here is the caller graph for this function:

Member Data Documentation

◆ pb_grant_map_

boost::bimap<iroha::protocol::GrantablePermission, std::string> iroha::model::converters::PbCommandFactory::pb_grant_map_
protected

◆ pb_role_map_

boost::bimap<iroha::protocol::RolePermission, std::string> iroha::model::converters::PbCommandFactory::pb_role_map_
protected

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