24.02.1
|
File Handling interface. More...
#include <FileHandler.h>
Public Member Functions | |
FileHandler () | |
Default Constructor. More... | |
~FileHandler () | |
Default Destructor. More... | |
FileHandler (FileHandler &&)=default | |
Allow instances of this class to be moved. More... | |
FileHandler (const FileHandler &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
FileHandler & | operator= (const FileHandler &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
FileHandler & | operator= (FileHandler &&)=default |
Allow instances of this class to be moved. More... | |
void | open (const std::string &filename, std::ios_base::openmode mode) |
Opens file. More... | |
void | close () |
Closes file. More... | |
std::fstream & | stream () |
Returns the file stream. More... | |
std::string | filename () const |
Returns filename of the handled file. More... | |
File Handling interface.
Definition at line 35 of file FileHandler.h.
FileHandler | ( | ) |
Default Constructor.
Definition at line 32 of file FileHandler.cpp.
~FileHandler | ( | ) |
|
default |
Allow instances of this class to be moved.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
void close | ( | ) |
Closes file.
Definition at line 50 of file FileHandler.cpp.
Referenced by FileHandler::open(), and FileHandler::~FileHandler().
std::string filename | ( | ) | const |
Returns filename of the handled file.
Definition at line 60 of file FileHandler.cpp.
Referenced by FileHandler::open().
void open | ( | const std::string & | filename, |
std::ios_base::openmode | mode | ||
) |
Opens file.
[in] | filename | File name |
[in] | mode | File open mode |
Definition at line 41 of file FileHandler.cpp.
References ARM_COMPUTE_ERROR_ON, FileHandler::close(), FileHandler::filename(), and clang_tidy_rules::mode.
Referenced by FilePrinter::FilePrinter().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
std::fstream & stream | ( | ) |