VOX
A little voxel engine
Loading...
Searching...
No Matches
FileOutput Class Reference

A class that represents a file used for output with RAII. More...

#include <logger.hpp>

Inheritance diagram for FileOutput:
Inheritance graph
Collaboration diagram for FileOutput:
Collaboration graph

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...
 

Detailed Description

A class that represents a file used for output with RAII.

Constructor & Destructor Documentation

◆ FileOutput() [1/2]

FileOutput::FileOutput ( const std::filesystem::path &  path)

Construct a new FileOutput object which opens a file.

Parameters
pathThe path to the file.
Exceptions
std::runtime_errorif the file could not be opened.

◆ FileOutput() [2/2]

FileOutput::FileOutput ( FileOutput &&  other)

Construct a new FileOutput object by moving another FileOutput object.

◆ ~FileOutput()

FileOutput::~FileOutput ( )

Destroy the FileOutput object and close the file.


The documentation for this class was generated from the following files: