hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
files.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_FILES_HPP
7 #define IROHA_FILES_HPP
8 
9 #include <string>
10 #include <vector>
11 
12 #include <boost/filesystem/path.hpp>
13 #include "common/result_fwd.hpp"
14 #include "logger/logger_fwd.hpp"
15 
19 namespace iroha {
20 
27  void remove_dir_contents(const boost::filesystem::path &dir,
28  const logger::LoggerPtr &log);
29 
36  const boost::filesystem::path &path);
37 
44  const boost::filesystem::path &path);
45 } // namespace iroha
46 #endif // IROHA_FILES_HPP
iroha::expected::Result< std::string, std::string > readTextFile(const boost::filesystem::path &path)
Definition: files.cpp:63
Definition: result_fwd.hpp:27
std::shared_ptr< Logger > LoggerPtr
Definition: logger_fwd.hpp:22
Definition: block_query.hpp:15
void remove_dir_contents(const boost::filesystem::path &dir, const logger::LoggerPtr &log)
Definition: files.cpp:32
iroha::expected::Result< std::vector< uint8_t >, std::string > readBinaryFile(const boost::filesystem::path &path)
Definition: files.cpp:69