rll::io::filedevice class

Derived classes

template <typename F, typename T, typename = std::enable_if_t<is_serializable<T, F>::value>>
class rll::configuration_file
Configuration file that can be loaded and saved.
template <typename F, typename T, typename = std::enable_if_t<is_serializable<T, F>::value>>
class rll::savefile

Public static variables

static auto write_permissions constexpr

Public static functions

static auto read_from(std::filesystem::path const& path) →  std::string
static auto try_read_from(std::filesystem::path const& path) →  result<std::string> noexcept
static auto try_write_to(std::filesystem::path const& path, std::string_view content) →  result noexcept
static void write_to(std::filesystem::path const& path, std::string_view content) noexcept(…)

Constructors, destructors, conversion operators

filedevice(std::filesystem::path path) explicit

Public functions

auto exists() const →  bool
auto is_regular_file() const →  bool
auto path() const →  std::filesystem::path const&
auto read() const →  std::string
auto suffixed_path(std::string_view const suffix) const →  std::filesystem::path
auto try_read() const →  result<std::string> noexcept
auto try_write(std::string_view content) const →  result noexcept
void write(std::string_view content) const noexcept(…)