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 TemporaryWsv;
16 
18  public:
26  virtual expected::Result<std::unique_ptr<TemporaryWsv>, std::string>
27  createTemporaryWsv() = 0;
28 
35  virtual void prepareBlock(std::unique_ptr<TemporaryWsv> wsv) = 0;
36 
37  virtual ~TemporaryFactory() = default;
38  };
39 
40  } // namespace ametsuchi
41 } // namespace iroha
42 #endif // IROHA_TEMPORARY_FACTORY_HPP
Definition: temporary_factory.hpp:17
virtual void prepareBlock(std::unique_ptr< TemporaryWsv > wsv)=0
Definition: block_query.hpp:16
virtual expected::Result< std::unique_ptr< TemporaryWsv >, std::string > createTemporaryWsv()=0