mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-04 19:25:51 +00:00
26 lines
542 B
C++
26 lines
542 B
C++
#ifndef XRPL_BASICS_FILEUTILITIES_H_INCLUDED
|
|
#define XRPL_BASICS_FILEUTILITIES_H_INCLUDED
|
|
|
|
#include <boost/filesystem.hpp>
|
|
#include <boost/system/error_code.hpp>
|
|
|
|
#include <optional>
|
|
|
|
namespace ripple {
|
|
|
|
std::string
|
|
getFileContents(
|
|
boost::system::error_code& ec,
|
|
boost::filesystem::path const& sourcePath,
|
|
std::optional<std::size_t> maxSize = std::nullopt);
|
|
|
|
void
|
|
writeFileContents(
|
|
boost::system::error_code& ec,
|
|
boost::filesystem::path const& destPath,
|
|
std::string const& contents);
|
|
|
|
} // namespace ripple
|
|
|
|
#endif
|