NRE_BinaryIOFile.hpp
Go to the documentation of this file.
1 
10  #pragma once
11 
12  #include "../IOFile/NRE_IOFile.hpp"
13  #include "../BinaryInput/Stream/NRE_BinaryInputStream.hpp"
14  #include "../BinaryOutput/Stream/NRE_BinaryOutputStream.hpp"
15 
20  namespace NRE {
25  namespace IO {
26 
31  class BinaryIOFile : public IOFile, public BinaryInputStream, public BinaryOutputStream {
32  public: // Methods
33  //## Constructor ##//
37  BinaryIOFile() = delete;
42  BinaryIOFile(File const& p);
43 
44  //## Move-Constructor ##//
49  BinaryIOFile(BinaryIOFile && f) = default;
50 
51  //## Deconstructor ##//
55  ~BinaryIOFile() = default;
56 
57  //## Getter ##//
61  std::ios_base::openmode getMode() const override;
65  std::fstream& getStream() override;
66 
67  //## Assignment Operator ##//
73  BinaryIOFile& operator =(BinaryIOFile && f) = default;
74 
75  };
76  }
77  }
78 
79  #include "NRE_BinaryIOFile.tpp"
Manage Input-Output file stream.
Definition: NRE_IOFile.hpp:31
Manage a file path and ensure that's the file exist before accessing it.
Definition: NRE_File.hpp:32
IO's API.
BinaryIOFile & operator=(BinaryIOFile &&f)=default
Base interface for binary input related stream.
Definition: NRE_BinaryInputStream.hpp:29
std::fstream & getStream() override
std::ios_base::openmode getMode() const override
Base interface for binary output related stream.
Definition: NRE_BinaryOutputStream.hpp:29
The NearlyRealEngine's global namespace.
Manage Binary Input-Output file stream.
Definition: NRE_BinaryIOFile.hpp:31