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 
25  create() override;
26 
27  private:
28  std::function<std::string()> path_provider_;
29  std::shared_ptr<shared_model::interface::BlockJsonConverter>
30  json_block_converter_;
31  logger::LoggerManagerTreePtr log_manager_;
32  };
33  } // namespace ametsuchi
34 } // namespace iroha
35 
36 #endif // IROHA_FLAT_FILE_BLOCK_STORAGE_FACTORY_HPP
iroha::expected::Result< std::unique_ptr< BlockStorage >, std::string > create() override
Definition: flat_file_block_storage_factory.cpp:22
Definition: flat_file_block_storage_factory.hpp:16
Definition: result_fwd.hpp:27
Definition: block_query.hpp:15
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
Definition: block_storage_factory.hpp:19