|
OXY API 1.0
OXY API Library Documentation
|
Provides utilities for creating and managing temporary files and directories. More...
Classes | |
| struct | oxy::make_tmpfile_fn |
| Function object to create a unique temporary file path with a specified extension. More... | |
| struct | oxy::PathRemover |
| Custom deleter for std::filesystem::path that removes the file or directory when the unique_ptr goes out of scope. More... | |
Namespaces | |
| namespace | oxy |
| This root namespace contains the common types and operations for the OXY-API library. | |
Typedefs | |
| using | oxy::unique_path = std::unique_ptr<std::filesystem::path, PathRemover> |
| Alias for unique_ptr with PathRemover. | |
Functions | |
| unique_path | oxy::make_unique_path (const std::filesystem::path &path) |
| Helper function to make a unique_path. | |
Variables | |
| constexpr make_tmpfile_fn | oxy::make_tmpfile |
| A constexpr instance of the make_tmpfile_fn function object for use in functional programming. | |
Provides utilities for creating and managing temporary files and directories.
This header defines the make_tmpfile_fn function object, which generates unique temporary file paths with a specified extension. It also includes a custom deleter for std::filesystem::path that ensures temporary files and directories are removed when they go out of scope. The utilities in this header facilitate the creation and management of temporary files in a safe and convenient manner.
@license MPL-2.0