hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
query_executor_factory.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_QUERY_EXECUTOR_FACTORY_HPP
7 #define IROHA_QUERY_EXECUTOR_FACTORY_HPP
8 
9 #include <boost/optional.hpp>
10 
14 
15 namespace iroha {
16  namespace ametsuchi {
18  public:
22  virtual boost::optional<std::shared_ptr<QueryExecutor>>
24  std::shared_ptr<PendingTransactionStorage> pending_txs_storage,
25  std::shared_ptr<shared_model::interface::QueryResponseFactory>
26  response_factory) const = 0;
27 
28  virtual ~QueryExecutorFactory() = default;
29  };
30  } // namespace ametsuchi
31 } // namespace iroha
32 #endif // IROHA_QUERY_EXECUTOR_FACTORY_HPP
Definition: query_executor_factory.hpp:17
Definition: block_query.hpp:16
virtual boost::optional< std::shared_ptr< QueryExecutor > > createQueryExecutor(std::shared_ptr< PendingTransactionStorage > pending_txs_storage, std::shared_ptr< shared_model::interface::QueryResponseFactory > response_factory) const =0