hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
flat_file_block_storage_factory.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_FLAT_FILE_BLOCK_STORAGE_FACTORY_HPP
7 #define IROHA_FLAT_FILE_BLOCK_STORAGE_FACTORY_HPP
8 
10 
13 
14 namespace iroha {
15  namespace ametsuchi {
17  public:
19  std::function<std::string()> path_provider,
20  std::shared_ptr<shared_model::interface::BlockJsonConverter>
21  json_block_converter,
22  logger::LoggerManagerTreePtr log_manager);
23  std::unique_ptr<BlockStorage> create() override;
24 
25  private:
26  std::function<std::string()> path_provider_;
27  std::shared_ptr<shared_model::interface::BlockJsonConverter>
28  json_block_converter_;
29  logger::LoggerManagerTreePtr log_manager_;
30  };
31  } // namespace ametsuchi
32 } // namespace iroha
33 
34 #endif // IROHA_FLAT_FILE_BLOCK_STORAGE_FACTORY_HPP
Definition: flat_file_block_storage_factory.hpp:16
Definition: block_query.hpp:14
FlatFileBlockStorageFactory(std::function< std::string()> path_provider, std::shared_ptr< shared_model::interface::BlockJsonConverter > json_block_converter, logger::LoggerManagerTreePtr log_manager)
Definition: flat_file_block_storage_factory.cpp:12
std::shared_ptr< LoggerManagerTree > LoggerManagerTreePtr
Definition: logger_manager_fwd.hpp:14
std::unique_ptr< BlockStorage > create() override
Definition: flat_file_block_storage_factory.cpp:21
Definition: block_storage_factory.hpp:18