📂 golxzn::os::filesystem 📂 1.6.5
golxzn filesystem submodule
|
Functions | |
static std::vector< byte > | golxzn::os::filesystem::read_binary (const std::wstring_view path) |
Read whole binary file. | |
static std::string | golxzn::os::filesystem::read_text (const std::wstring_view path) |
Read whole text file. | |
template<class Custom > | |
static auto | golxzn::os::filesystem::read_binary (const std::wstring_view path) -> std::enable_if_t< std::is_constructible_v< Custom, std::vector< byte > >, Custom > |
Construct Custom class by binary data from file. | |
template<class Custom > | |
static auto | golxzn::os::filesystem::read_text (const std::wstring_view path) -> std::enable_if_t< std::is_constructible_v< Custom, std::string >, Custom > |
Construct Custom class by text data from file. | |
template<class Custom > | |
static auto | golxzn::os::filesystem::read_shared_binary (const std::wstring_view path) -> std::enable_if_t< std::is_constructible_v< Custom, std::vector< byte > >, std::shared_ptr< Custom > > |
Construct std::shared_ptr<Custom> by binary data from file. | |
template<class Custom > | |
static auto | golxzn::os::filesystem::read_shared_text (const std::wstring_view path) -> std::enable_if_t< std::is_constructible_v< Custom, std::string >, std::shared_ptr< Custom > > |
Construct std::shared_ptr<Custom> by binary data from file. | |
template<class Custom > | |
static auto | golxzn::os::filesystem::read_unique_binary (const std::wstring_view path) -> std::enable_if_t< std::is_constructible_v< Custom, std::vector< byte > >, std::unique_ptr< Custom > > |
Construct std::shared_ptr<Custom> by binary data from file. | |
template<class Custom > | |
static auto | golxzn::os::filesystem::read_unique_text (const std::wstring_view path) -> std::enable_if_t< std::is_constructible_v< Custom, std::string >, std::unique_ptr< Custom > > |
Construct std::shared_ptr<Custom> by binary data from file. | |
|
static |
Read whole binary file.
std::invalid_argument
if the path has no protocol! path | Path to the file |
std::vector<byte>
- The data or an empty vector if there's an reading error.
|
static |
Construct Custom
class by binary data from file.
Custom | Class to construct. Has to have a constructor with std::vector<byte> argument |
path | Path to the file |
Custom
- Constructed class
|
static |
Construct std::shared_ptr<Custom>
by binary data from file.
Custom | Class to construct. Has to have a public constructor with std::vector<byte> argument |
path | Path to the file |
std::shared_ptr<Custom>
- Constructed shared class
|
static |
Construct std::shared_ptr<Custom>
by binary data from file.
Custom | Class to construct. Has to have a public constructor with std::string argument |
path | Path to the file |
std::shared_ptr<Custom>
- Constructed shared class
|
static |
Read whole text file.
std::invalid_argument
if the path has no protocol! path | Path to the file |
std::string
- The data or an empty string if there's an reading error.
|
static |
Construct Custom
class by text data from file.
Custom | Class to construct. Has to have a constructor with std::string argument |
path | Path to the file |
Custom
- Constructed class
|
static |
Construct std::shared_ptr<Custom>
by binary data from file.
Custom | Class to construct. Has to have a public constructor with std::vector<byte> argument |
path | Path to the file |
std::unique_ptr<Custom>
- Constructed unique class
|
static |
Construct std::shared_ptr<Custom>
by binary data from file.
Custom | Class to construct. Has to have a public constructor with std::string argument |
path | Path to the file |
std::unique_ptr<Custom>
- Constructed unique class