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

#include "proposal_validator.hpp"

Inheritance diagram for shared_model::validation::ProposalValidator< FieldValidator, TransactionsCollectionValidator >:
Inheritance graph
Collaboration diagram for shared_model::validation::ProposalValidator< FieldValidator, TransactionsCollectionValidator >:
Collaboration graph

Public Member Functions

Answer validate (const interface::Proposal &prop) const
 
- Public Member Functions inherited from shared_model::validation::ContainerValidator< interface::Proposal, FieldValidator, TransactionsCollectionValidator >
 ContainerValidator (const FieldValidator &field_validator=FieldValidator(), const TransactionsCollectionValidator &transactions_collection_validator=TransactionsCollectionValidator())
 
Answer validate (const interface::Proposal &cont, const std::string &reason_name, Validator &&validator) const
 
Answer validate (const interface::Proposal &cont, const std::string &reason_name) const
 
- Public Member Functions inherited from shared_model::validation::AbstractValidator< interface::Proposal >
virtual ~AbstractValidator ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from shared_model::validation::ContainerValidator< interface::Proposal, FieldValidator, TransactionsCollectionValidator >
void validateTransactions (ReasonsGroupType &reason, const interface::types::TransactionsCollectionType &transactions, interface::types::TimestampType current_timestamp) const
 
- Protected Attributes inherited from shared_model::validation::ContainerValidator< interface::Proposal, FieldValidator, TransactionsCollectionValidator >
FieldValidator field_validator_
 

Detailed Description

template<typename FieldValidator, typename TransactionsCollectionValidator>
class shared_model::validation::ProposalValidator< FieldValidator, TransactionsCollectionValidator >

Class that validates proposal

Member Function Documentation

template<typename FieldValidator , typename TransactionsCollectionValidator >
Answer shared_model::validation::ProposalValidator< FieldValidator, TransactionsCollectionValidator >::validate ( const interface::Proposal prop) const
inlinevirtual

Applies validation on proposal

Parameters
proposal
Returns
Answer containing found error if any

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


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