hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::proto::TransportBuilder< T, SV > Class Template Reference

#include "transport_builder.hpp"

Collaboration diagram for shared_model::proto::TransportBuilder< T, SV >:
Collaboration graph

Public Member Functions

 TransportBuilder (const SV &validator=SV())
 
iroha::expected::Result< T, std::stringbuild (typename T::TransportType transport)
 

Detailed Description

template<typename T, typename SV>
class shared_model::proto::TransportBuilder< T, SV >

Class for building any shared model objects from corresponding transport representation (e.g. protobuf object)

Template Parameters
TBuild type
SVStateless validator type

Constructor & Destructor Documentation

template<typename T, typename SV>
shared_model::proto::TransportBuilder< T, SV >::TransportBuilder ( const SV &  validator = SV())
inline

Member Function Documentation

template<typename T, typename SV>
iroha::expected::Result<T, std::string> shared_model::proto::TransportBuilder< T, SV >::build ( typename T::TransportType  transport)
inline

Builds result from transport object

Returns
value if transport object is valid and error message otherwise

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