NRE_OutputFile.hpp
Go to the documentation of this file.
1 
10  #pragma once
11 
12  #include "../../NRE_FileStream.hpp"
13  #include "../Stream/NRE_OutputStream.hpp"
14 
19  namespace NRE {
24  namespace IO {
25 
30  class OutputFile : public FileStream, public OutputStream {
31  public: // Methods
32  //## Constructor ##//
36  OutputFile() = delete;
41  OutputFile(File const& p);
42 
43  //## Move-Constructor ##//
48  OutputFile(OutputFile && o) = default;
49 
50  //## Deconstructor ##//
54  virtual ~OutputFile() = default;
55 
56  //## Getter ##//
60  virtual std::ios_base::openmode getMode() const override;
64  virtual std::fstream& getStream() override;
65 
66  //## Assignment Operator ##//
72  OutputFile& operator =(OutputFile && o) = default;
73  };
74  }
75  }
76 
77  #include "NRE_OutputFile.tpp"
Manage a file path and ensure that's the file exist before accessing it.
Definition: NRE_File.hpp:32
virtual std::fstream & getStream() override
IO's API.
OutputFile & operator=(OutputFile &&o)=default
Base interface for output related stream.
Definition: NRE_OutputStream.hpp:31
Manage output file stream.
Definition: NRE_OutputFile.hpp:30
The base interface for Input, Output and IO file.
Definition: NRE_FileStream.hpp:30
The NearlyRealEngine's global namespace.
virtual std::ios_base::openmode getMode() const override
virtual ~OutputFile()=default