hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
JsonDeserializerImpl Class Reference
Collaboration diagram for JsonDeserializerImpl:
Collaboration graph

Public Member Functions

 JsonDeserializerImpl (std::shared_ptr< shared_model::interface::CommonObjectsFactory > common_objects_factory, std::optional< ConstJsonValRef > json, std::optional< logger::LoggerPtr > log)
 
template<typename TDest >
TDest deserialize ()
 
template<>
bool loadInto (std::string &dest)
 
template<>
bool loadInto (logger::LogLevel &dest)
 
template<>
bool loadInto (logger::LogPatterns &dest)
 
template<>
bool loadInto (bool &dest)
 
template<>
bool loadInto (std::unique_ptr< logger::LoggerManagerTree > &dest)
 
template<>
bool loadInto (iroha::torii::TlsParams &dest)
 
template<>
bool loadInto (IrohadConfig::InterPeerTls::PeerCertProvider &dest)
 
template<>
bool loadInto (IrohadConfig::InterPeerTls &dest)
 
template<>
bool loadInto (IrohadConfig::DbConfig &dest)
 
template<>
bool loadInto (IrohadConfig::UtilityService &dest)
 
template<>
bool loadInto (iroha::multihash::Type &dest)
 
template<>
bool loadInto (IrohadConfig::Crypto::Default &dest)
 
template<>
bool loadInto (IrohadConfig::Crypto &dest)
 
template<>
bool loadInto (IrohadConfig &dest)
 

Detailed Description

A class for reading a structure from a JSON node.

Constructor & Destructor Documentation

◆ JsonDeserializerImpl()

JsonDeserializerImpl::JsonDeserializerImpl ( std::shared_ptr< shared_model::interface::CommonObjectsFactory common_objects_factory,
std::optional< ConstJsonValRef json,
std::optional< logger::LoggerPtr log 
)
inline

Member Function Documentation

◆ deserialize()

template<typename TDest >
TDest JsonDeserializerImpl::deserialize ( )
inline

Load the data from rapidjson::Value. Checks the JSON type and throws exception if it is wrong.

Template Parameters
TDest- the type of data to read from JSON
Parameters
src- the source JSON to read the data from
path- path in the configuration structure
Returns
the deserialized data
Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadInto() [1/14]

template<>
bool JsonDeserializerImpl::loadInto ( std::string &  dest)
inline
Here is the call graph for this function:

◆ loadInto() [2/14]

template<>
bool JsonDeserializerImpl::loadInto ( logger::LogLevel dest)
inline
Here is the call graph for this function:

◆ loadInto() [3/14]

template<>
bool JsonDeserializerImpl::loadInto ( logger::LogPatterns dest)
inline
Here is the call graph for this function:

◆ loadInto() [4/14]

template<>
bool JsonDeserializerImpl::loadInto ( bool &  dest)
inline
Here is the call graph for this function:

◆ loadInto() [5/14]

template<>
bool JsonDeserializerImpl::loadInto ( std::unique_ptr< logger::LoggerManagerTree > &  dest)
inline

◆ loadInto() [6/14]

template<>
bool JsonDeserializerImpl::loadInto ( iroha::torii::TlsParams dest)
inline

◆ loadInto() [7/14]

template<>
bool JsonDeserializerImpl::loadInto ( IrohadConfig::InterPeerTls::PeerCertProvider dest)
inline

◆ loadInto() [8/14]

template<>
bool JsonDeserializerImpl::loadInto ( IrohadConfig::InterPeerTls dest)
inline

◆ loadInto() [9/14]

template<>
bool JsonDeserializerImpl::loadInto ( IrohadConfig::DbConfig dest)
inline

◆ loadInto() [10/14]

template<>
bool JsonDeserializerImpl::loadInto ( IrohadConfig::UtilityService dest)
inline

◆ loadInto() [11/14]

template<>
bool JsonDeserializerImpl::loadInto ( iroha::multihash::Type dest)
inline
Here is the call graph for this function:

◆ loadInto() [12/14]

template<>
bool JsonDeserializerImpl::loadInto ( IrohadConfig::Crypto::Default dest)
inline
Here is the call graph for this function:

◆ loadInto() [13/14]

template<>
bool JsonDeserializerImpl::loadInto ( IrohadConfig::Crypto dest)
inline

◆ loadInto() [14/14]

template<>
bool JsonDeserializerImpl::loadInto ( IrohadConfig dest)
inline
Here is the call graph for this function:

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