![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
#include <expected>#include <optional>#include <nlohmann/json_fwd.hpp>#include "galaxy/fs/FileError.hpp"
Include dependency graph for FileUtils.hpp:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Namespaces | |
| namespace | galaxy |
| Animated.cpp galaxy. | |
| namespace | galaxy::fileutils |
Functions | |
| std::optional< std::string > | galaxy::fileutils::extension (const std::string &filepath) noexcept |
| Get a file or path's extension. | |
| std::expected< std::string, FileError > | galaxy::fileutils::read (const std::string &filepath) |
| Read a non-binary file on disk. | |
| std::optional< FileError > | galaxy::fileutils::write (const std::string &filepath, const std::string &data) |
| Writes a non-binary file to disk. | |
| std::optional< nlohmann::json > | galaxy::fileutils::read_json (const std::string &filepath) |
| Read a json file from disk. | |
| bool | galaxy::fileutils::write_json (const std::string &filepath, const nlohmann::json &json) |
| Write json to disk. | |
| void | galaxy::fileutils::open_url (const std::string &url) noexcept |
| Open URL in default webbrowser. | |