VOX
A little voxel engine
|
A class that represents a file used for output with RAII. More...
#include <logger.hpp>
Public Member Functions | |
FileOutput (const std::filesystem::path &path) | |
Construct a new FileOutput object which opens a file. More... | |
FileOutput (FileOutput &&other) | |
Construct a new FileOutput object by moving another FileOutput object. More... | |
~FileOutput () | |
Destroy the FileOutput object and close the file. More... | |
A class that represents a file used for output with RAII.
FileOutput::FileOutput | ( | const std::filesystem::path & | path | ) |
Construct a new FileOutput object which opens a file.
path | The path to the file. |
std::runtime_error | if the file could not be opened. |
FileOutput::FileOutput | ( | FileOutput && | other | ) |
Construct a new FileOutput object by moving another FileOutput object.
FileOutput::~FileOutput | ( | ) |
Destroy the FileOutput object and close the file.