hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
abstract_validator.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_ABSTRACT_VALIDATOR_HPP
7 #define IROHA_ABSTRACT_VALIDATOR_HPP
8 
9 #include "validators/answer.hpp"
10 
11 namespace shared_model {
12  namespace validation {
13 
14  // validator which can be overloaded for dynamic polymorphism
15  template <typename Model>
17  public:
18  virtual Answer validate(const Model &m) const = 0;
19 
20  virtual ~AbstractValidator() = default;
21  };
22 
23  } // namespace validation
24 } // namespace shared_model
25 
26 #endif // IROHA_ABSTRACT_VALIDATOR_HPP
Definition: abstract_validator.hpp:16
virtual Answer validate(const Model &m) const =0
Definition: command_executor.hpp:12
Definition: answer.hpp:28