hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
setting_query.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SETTING_QUERY_HPP
7 #define IROHA_SETTING_QUERY_HPP
8 
9 #include <boost/optional.hpp>
10 #include "common/result.hpp"
11 #include "validators/settings.hpp"
12 
13 namespace iroha {
14 
15  namespace ametsuchi {
19  class SettingQuery {
20  public:
21  virtual ~SettingQuery() = default;
22 
23  virtual expected::Result<
24  std::unique_ptr<const shared_model::validation::Settings>,
25  std::string>
26  get() = 0;
27  };
28  } // namespace ametsuchi
29 } // namespace iroha
30 
31 #endif // IROHA_SETTING_QUERY_HPP
Definition: setting_query.hpp:19
virtual ~SettingQuery()=default
Definition: block_query.hpp:14