Manage Input-Output file stream. More...
#include <NRE_IOFile.hpp>
Public Member Functions | |
IOFile ()=delete | |
IOFile (File const &p) | |
IOFile (IOFile &&f)=default | |
virtual | ~IOFile ()=default |
virtual std::ios_base::openmode | getMode () const override |
virtual std::fstream & | getStream () override |
IOFile & | operator= (IOFile &&f)=default |
Public Member Functions inherited from NRE::IO::FileStream | |
FileStream ()=delete | |
FileStream (File const &p) | |
FileStream (FileStream const &f)=delete | |
FileStream (FileStream &&f)=default | |
virtual | ~FileStream ()=default |
bool | isOpen () const |
void | open () |
void | openEmpty () |
FileStream & | operator= (FileStream const &f)=delete |
FileStream & | operator= (FileStream &&f)=default |
Public Member Functions inherited from NRE::IO::File | |
File ()=default | |
File (Utility::String const &p) | |
File (char const p[]) | |
File (File const &f)=default | |
File (File &&f)=default | |
~File ()=default | |
Utility::String const & | getPath () const |
void | setPath (Utility::String const &p) |
bool | exist () const |
File & | operator= (File const &f)=default |
File & | operator= (File &&f)=default |
Utility::String | operator+ (Utility::String const &s) const |
File | operator+ (File const &f) const |
Utility::String const & | toString () const |
Public Member Functions inherited from NRE::IO::InputStream | |
InputStream ()=default | |
InputStream (InputStream const &i)=delete | |
InputStream (InputStream &&i)=default | |
virtual | ~InputStream ()=default |
std::streampos | getPosition () |
template<class T > | |
void | read (T &object) |
void | readLine (Utility::String &line) |
void | seekBegin (size_t offset=0) |
void | seekEnd (size_t offset=0) |
InputStream & | operator= (InputStream const &i)=delete |
InputStream & | operator= (InputStream &&i)=default |
Public Member Functions inherited from NRE::IO::OutputStream | |
OutputStream ()=default | |
OutputStream (OutputStream const &o)=delete | |
OutputStream (OutputStream &&o)=default | |
virtual | ~OutputStream ()=default |
std::streampos | getPosition () |
template<class T > | |
void | write (T const &object) |
void | seekBegin (size_t offset=0) |
void | seekEnd (size_t offset=0) |
OutputStream & | operator= (OutputStream const &o)=delete |
OutputStream & | operator= (OutputStream &&o)=default |
Additional Inherited Members | |
Protected Member Functions inherited from NRE::IO::FileStream | |
std::fstream & | getStream () |
Manage Input-Output file stream.
|
delete |
Default Constructor
NRE::IO::IOFile::IOFile | ( | File const & | p | ) |
Construct an IO file stream with a given file's path
p | the file's stream path |
|
default |
Move f into this
f | the io file to move |
|
virtualdefault |
IOFile Deconstructor
|
overridevirtual |
Implements NRE::IO::FileStream.
Reimplemented in NRE::IO::BinaryIOFile.
|
overridevirtual |
Implements NRE::IO::InputStream.
Reimplemented in NRE::IO::BinaryIOFile.
Move assignment of f into this
f | the io file to move |