![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
Functions | |
| std::optional< std::string > | extension (const std::string &filepath) noexcept |
| Get a file or path's extension. | |
| std::expected< std::string, FileError > | read (const std::string &filepath) |
| Read a non-binary file on disk. | |
| std::optional< FileError > | write (const std::string &filepath, const std::string &data) |
| Writes a non-binary file to disk. | |
| std::optional< nlohmann::json > | read_json (const std::string &filepath) |
| Read a json file from disk. | |
| bool | write_json (const std::string &filepath, const nlohmann::json &json) |
| Write json to disk. | |
| void | open_url (const std::string &url) noexcept |
| Open URL in default webbrowser. | |
|
nodiscardnoexcept |
Get a file or path's extension.
| filepath | Filename or path with a filename. |
Definition at line 21 of file FileUtils.cpp.
Here is the caller graph for this function:
|
nodiscard |
Read a non-binary file on disk.
| filepath | Path to file to read. |
Definition at line 32 of file FileUtils.cpp.
Here is the caller graph for this function:
|
nodiscard |
Writes a non-binary file to disk.
| filepath | Path to file to write to. |
| data | Data to write to file. |
Definition at line 62 of file FileUtils.cpp.
Here is the caller graph for this function:
|
nodiscard |
Read a json file from disk.
| filepath | Path to file to read. |
Definition at line 89 of file FileUtils.cpp.
Here is the call graph for this function:
|
nodiscard |
Write json to disk.
| filepath | Path to file to write to. |
| json | Json data to write. |
Definition at line 103 of file FileUtils.cpp.
Here is the call graph for this function:
|
noexcept |
Open URL in default webbrowser.
| url | URL to website to open. |
Definition at line 115 of file FileUtils.cpp.
Here is the caller graph for this function: