6 #ifndef IROHA_FLAT_FILE_HPP 7 #define IROHA_FLAT_FILE_HPP 27 struct private_tag {};
53 static boost::optional<std::unique_ptr<FlatFile>>
create(
58 boost::optional<Bytes>
get(
Identifier id)
const override;
96 FlatFile::private_tag,
105 std::atomic<Identifier> current_id_;
119 #endif // IROHA_FLAT_FILE_HPP FlatFile(const FlatFile &rhs)=delete
static std::string id_to_name(Identifier id)
Definition: flat_file.cpp:23
Identifier last_id() const override
Definition: flat_file.cpp:102
Definition: flat_file.hpp:22
string(REPLACE".""/"CMAKE_SWIG_OUTDIR ${SWIG_JAVA_PKG}) else() set(CMAKE_SWIG_FLAGS"") endif() myswig_add_library(irohajava LANGUAGE java SOURCES bindings.i) unset(CMAKE_SWIG_FLAGS) swig_link_libraries(irohajava $
Definition: CMakeLists.txt:54
static boost::optional< Identifier > check_consistency(const std::string &dump_dir)
Definition: flat_file.cpp:122
std::shared_ptr< spdlog::logger > Logger
Definition: logger.hpp:26
std::vector< uint8_t > Bytes
Definition: key_value_storage.hpp:26
static boost::optional< std::unique_ptr< FlatFile > > create(const std::string &path)
Definition: flat_file.cpp:29
Definition: block_query.hpp:16
FlatFile & operator=(const FlatFile &rhs)=delete
FlatFile::Identifier Identifier
Definition: flat_file.cpp:19
std::string directory() const override
Definition: flat_file.cpp:98
Logger log(const std::string &tag)
Definition: logger.cpp:48
bool add(Identifier id, const Bytes &blob) override
Definition: flat_file.cpp:44
static const uint32_t DIGIT_CAPACITY
Definition: flat_file.hpp:32
void dropAll() override
Definition: flat_file.cpp:106
Definition: key_value_storage.hpp:20