hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::validation::BlocksQueryValidator< FieldValidator > Class Template Reference

#include "blocks_query_validator.hpp"

Collaboration diagram for shared_model::validation::BlocksQueryValidator< FieldValidator >:
Collaboration graph

Public Member Functions

 BlocksQueryValidator (const FieldValidator &field_validator=FieldValidator())
 
Answer validate (const interface::BlocksQuery &qry) const
 

Protected Attributes

Answer answer_
 
FieldValidator field_validator_
 

Detailed Description

template<typename FieldValidator>
class shared_model::validation::BlocksQueryValidator< FieldValidator >

Class that validates blocks query field from query

Template Parameters
FieldValidator- field validator type

Constructor & Destructor Documentation

template<typename FieldValidator >
shared_model::validation::BlocksQueryValidator< FieldValidator >::BlocksQueryValidator ( const FieldValidator field_validator = FieldValidator())
inline

Member Function Documentation

template<typename FieldValidator >
Answer shared_model::validation::BlocksQueryValidator< FieldValidator >::validate ( const interface::BlocksQuery qry) const
inline

Applies validation to given query

Parameters
qry- query to validate
Returns
Answer containing found error if any

Here is the call graph for this function:

Member Data Documentation

template<typename FieldValidator >
Answer shared_model::validation::BlocksQueryValidator< FieldValidator >::answer_
protected
template<typename FieldValidator >
FieldValidator shared_model::validation::BlocksQueryValidator< FieldValidator >::field_validator_
protected

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