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

#include "blocks_query_validator.hpp"

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

Public Member Functions

 BlocksQueryValidator (std::shared_ptr< ValidatorsConfig > config)
 
Answer validate (const interface::BlocksQuery &qry) const
 
- Public Member Functions inherited from shared_model::validation::AbstractValidator< interface::BlocksQuery >
virtual ~AbstractValidator ()=default
 

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

◆ BlocksQueryValidator()

template<typename FieldValidator >
shared_model::validation::BlocksQueryValidator< FieldValidator >::BlocksQueryValidator ( std::shared_ptr< ValidatorsConfig config)
inline

Member Function Documentation

◆ validate()

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

Applies validation to given query

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

Implements shared_model::validation::AbstractValidator< interface::BlocksQuery >.

Here is the call graph for this function:

Member Data Documentation

◆ answer_

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

◆ field_validator_

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

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