hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
temporary_factory.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_TEMPORARY_FACTORY_HPP
7 #define IROHA_TEMPORARY_FACTORY_HPP
8 
9 #include <memory>
10 #include "common/result.hpp"
11 
12 namespace iroha {
13  namespace ametsuchi {
14 
15  class CommandExecutor;
16  class TemporaryWsv;
17 
19  public:
27  virtual std::unique_ptr<TemporaryWsv> createTemporaryWsv(
28  std::shared_ptr<CommandExecutor> command_executor) = 0;
29 
36  virtual void prepareBlock(std::unique_ptr<TemporaryWsv> wsv) = 0;
37 
38  virtual ~TemporaryFactory() = default;
39  };
40 
41  } // namespace ametsuchi
42 } // namespace iroha
43 #endif // IROHA_TEMPORARY_FACTORY_HPP
Definition: temporary_factory.hpp:18
virtual void prepareBlock(std::unique_ptr< TemporaryWsv > wsv)=0
Definition: block_query.hpp:14
virtual std::unique_ptr< TemporaryWsv > createTemporaryWsv(std::shared_ptr< CommandExecutor > command_executor)=0