hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
query_processor.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_QUERY_PROCESSOR_HPP
7 #define IROHA_QUERY_PROCESSOR_HPP
8 
9 #include <memory>
10 #include <string>
11 
12 #include "common/result_fwd.hpp"
13 
14 namespace shared_model {
15  namespace interface {
16  class Query;
17  class BlocksQuery;
18  class QueryResponse;
19  } // namespace interface
20 } // namespace shared_model
21 
22 namespace iroha {
23  namespace torii {
24 
29  public:
36  std::unique_ptr<shared_model::interface::QueryResponse>,
37  std::string>
38  queryHandle(const shared_model::interface::Query &qry) = 0;
39 
45  virtual iroha::expected::Result<void, std::string> blocksQueryHandle(
47 
48  virtual ~QueryProcessor() = default;
49  };
50  } // namespace torii
51 } // namespace iroha
52 
53 #endif // IROHA_QUERY_PROCESSOR_HPP
Definition: command_client.hpp:16
Definition: query.hpp:36
Definition: blocks_query.hpp:20
Definition: result_fwd.hpp:27
Definition: block_query.hpp:15
Definition: command_executor.hpp:13
Definition: query_processor.hpp:28