mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
This change updates the ColumnLimit from 80 to 120, and applies clang-format to reformat the code.
23 lines
525 B
C++
23 lines
525 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 xrpl {
|
|
|
|
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 xrpl
|
|
|
|
#endif
|