OpenWalnut  1.5.0dev
Public Member Functions | Protected Attributes | List of all members
WReader Class Reference

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

#include <WReader.h>

+ Inheritance diagram for WReader:
+ Collaboration diagram for WReader:

Public Member Functions

 WReader (std::string fname)
 Creates a read object for file reading. More...
 
OW_API_DEPRECATED void setFileName (std::string fname)
 Reset the file name and checks if it exists. More...
 
void setFilename (std::string fname)
 Reset the file name and checks if it exists. More...
 

Protected Attributes

std::string m_fname
 Absolute path of the file to read from. More...
 

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::WReader ( std::string  fname)
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.

References setFilename().

+ Here is the call graph for this function:

Member Function Documentation

◆ setFileName()

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

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.

References setFilename().

+ Here is the call graph for this function:

◆ setFilename()

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

Reset the file name and checks if it exists.

Parameters
fnamefile name
Exceptions
WDHNoSuchFile

Definition at line 41 of file WReader.cpp.

References m_fname.

Referenced by setFileName(), and WReader().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_fname

std::string WReader::m_fname
protected

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