OpenWalnut 1.2.5
|
Read some data from a given file. More...
#include <WReader.h>
Public Member Functions | |
WReader (std::string fname) throw ( WDHNoSuchFile ) | |
Creates a read object for file reading. | |
void | setFileName (std::string fname) throw ( WDHNoSuchFile ) |
Reset the file name and checks if it exists. | |
Protected Attributes | |
std::string | m_fname |
Absolute path of the file to read from. |
Read some data from a given file.
This base class is just for file management (file exists, etc.) Subclasses may use those mechanisms and specify their file format which is not the purpose of this base class.
WReader::WReader | ( | std::string | fname | ) | throw ( WDHNoSuchFile ) [explicit] |
Creates a read object for file reading.
fname | path to file which should be loaded |
WDHNoSuchFile |
Definition at line 31 of file WReader.cpp.
void WReader::setFileName | ( | std::string | fname | ) | throw ( WDHNoSuchFile ) |
Reset the file name and checks if it exists.
fname | file name |
WDHNoSuchFile |
Definition at line 36 of file WReader.cpp.
std::string WReader::m_fname [protected] |
Absolute path of the file to read from.
Definition at line 59 of file WReader.h.
Referenced by WReaderMatrixSymVTK::readTable().