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