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

#include "query_validator.hpp"

Inheritance diagram for shared_model::validation::QueryValidator< FieldValidator, QueryFieldValidator >:
Inheritance graph
Collaboration diagram for shared_model::validation::QueryValidator< FieldValidator, QueryFieldValidator >:
Collaboration graph

Public Member Functions

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

Protected Attributes

Answer answer_
 
FieldValidator field_validator_
 
QueryFieldValidator query_field_validator_
 

Detailed Description

template<typename FieldValidator, typename QueryFieldValidator>
class shared_model::validation::QueryValidator< FieldValidator, QueryFieldValidator >

Class that validates query field from query

Template Parameters
FieldValidator- field validator type
QueryFieldValidator- concrete query validator type

Constructor & Destructor Documentation

template<typename FieldValidator , typename QueryFieldValidator >
shared_model::validation::QueryValidator< FieldValidator, QueryFieldValidator >::QueryValidator ( std::shared_ptr< ValidatorsConfig config)
inline

Member Function Documentation

template<typename FieldValidator , typename QueryFieldValidator >
Answer shared_model::validation::QueryValidator< FieldValidator, QueryFieldValidator >::validate ( const interface::Query qry) const
inlineoverridevirtual

Applies validation to given query

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

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

Here is the call graph for this function:

Member Data Documentation

template<typename FieldValidator , typename QueryFieldValidator >
Answer shared_model::validation::QueryValidator< FieldValidator, QueryFieldValidator >::answer_
protected
template<typename FieldValidator , typename QueryFieldValidator >
FieldValidator shared_model::validation::QueryValidator< FieldValidator, QueryFieldValidator >::field_validator_
protected
template<typename FieldValidator , typename QueryFieldValidator >
QueryFieldValidator shared_model::validation::QueryValidator< FieldValidator, QueryFieldValidator >::query_field_validator_
protected

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