hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::proto::ProtoTransportFactory< Interface, Proto > Class Template Reference

#include "proto_transport_factory.hpp"

Inheritance diagram for shared_model::proto::ProtoTransportFactory< Interface, Proto >:
Inheritance graph
Collaboration diagram for shared_model::proto::ProtoTransportFactory< Interface, Proto >:
Collaboration graph

Public Types

using ValidatorType = std::unique_ptr< shared_model::validation::AbstractValidator< Interface >>
 
using ProtoValidatorType = std::shared_ptr< shared_model::validation::AbstractValidator< typename Proto::TransportType >>
 

Public Member Functions

 ProtoTransportFactory (ValidatorType interface_validator, ProtoValidatorType proto_validator)
 
iroha::expected::Result< std::unique_ptr< Interface >, Error > build (typename Proto::TransportType m) const override
 
- Public Member Functions inherited from shared_model::interface::AbstractTransportFactory< Interface, Proto::TransportType >
virtual ~AbstractTransportFactory ()=default
 

Member Typedef Documentation

template<typename Interface , typename Proto >
using shared_model::proto::ProtoTransportFactory< Interface, Proto >::ProtoValidatorType = std::shared_ptr<shared_model::validation::AbstractValidator< typename Proto::TransportType>>
template<typename Interface , typename Proto >
using shared_model::proto::ProtoTransportFactory< Interface, Proto >::ValidatorType = std::unique_ptr< shared_model::validation::AbstractValidator<Interface>>

Constructor & Destructor Documentation

template<typename Interface , typename Proto >
shared_model::proto::ProtoTransportFactory< Interface, Proto >::ProtoTransportFactory ( ValidatorType  interface_validator,
ProtoValidatorType  proto_validator 
)
inline

Member Function Documentation

template<typename Interface , typename Proto >
iroha::expected::Result<std::unique_ptr<Interface>, Error> shared_model::proto::ProtoTransportFactory< Interface, Proto >::build ( typename Proto::TransportType  m) const
inlineoverridevirtual

Implements shared_model::interface::AbstractTransportFactory< Interface, Proto::TransportType >.

Here is the call graph for this function:


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