header_utils
Loading...
Searching...
No Matches
UBJSON

Functions

expected< nlohmann::json, std::error_code > ghassanpl::formats::ubjson::load_file (std::filesystem::path const &from)
nlohmann::json ghassanpl::formats::ubjson::try_load_file (std::filesystem::path const &from, nlohmann::json or_json)
nlohmann::json ghassanpl::formats::ubjson::try_load_file (std::filesystem::path const &from)
expected< void, std::error_code > ghassanpl::formats::ubjson::save_file (std::filesystem::path const &to, nlohmann::json const &j)

Detailed Description

Function Documentation

◆ load_file()

expected< nlohmann::json, std::error_code > ghassanpl::formats::ubjson::load_file ( std::filesystem::path const & from)
inline

Definition at line 248 of file json_helpers.h.

◆ save_file()

expected< void, std::error_code > ghassanpl::formats::ubjson::save_file ( std::filesystem::path const & to,
nlohmann::json const & j )
inline

Definition at line 271 of file json_helpers.h.

◆ try_load_file() [1/2]

nlohmann::json ghassanpl::formats::ubjson::try_load_file ( std::filesystem::path const & from)
inline

Definition at line 264 of file json_helpers.h.

◆ try_load_file() [2/2]

nlohmann::json ghassanpl::formats::ubjson::try_load_file ( std::filesystem::path const & from,
nlohmann::json or_json )
inline

Definition at line 257 of file json_helpers.h.