OpenWalnut  1.4.0
Public Member Functions | Protected Attributes
WReader Class Reference

Read some data from a given file. More...

#include <WReader.h>

+ Inheritance diagram for WReader:

List of all members.

Public Member Functions

 WReader (std::string fname) throw ( WDHNoSuchFile )
 Creates a read object for file reading.
OW_API_DEPRECATED void setFileName (std::string fname) throw ( WDHNoSuchFile )
 Reset the file name and checks if it exists.
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.

Detailed Description

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.

Definition at line 39 of file WReader.h.


Constructor & Destructor Documentation

WReader::WReader ( std::string  fname) throw ( WDHNoSuchFile ) [explicit]

Creates a read object for file reading.

Parameters:
fnamepath to file which should be loaded
Exceptions:
WDHNoSuchFile

Definition at line 31 of file WReader.cpp.


Member Function Documentation

void WReader::setFileName ( std::string  fname) throw ( WDHNoSuchFile )

Reset the file name and checks if it exists.

Parameters:
fnamefile name
Exceptions:
WDHNoSuchFile
Deprecated:
use setFilename instead.

Definition at line 36 of file WReader.cpp.

void WReader::setFilename ( std::string  fname) throw ( WDHNoSuchFile )

Reset the file name and checks if it exists.

Parameters:
fnamefile name
Exceptions:
WDHNoSuchFile

Definition at line 41 of file WReader.cpp.


Member Data Documentation

std::string WReader::m_fname [protected]

Absolute path of the file to read from.

Definition at line 68 of file WReader.h.

Referenced by WReaderMatrixSymVTK::readTable().


The documentation for this class was generated from the following files: