File reader class which implements functionality to read data from input files.
More...
#include <FileReader.h>
|
| | FileReader () |
| | Creates a new FileReader with no file initialized.
|
| |
| | FileReader (const std::string &filename) |
| | Creates a new FileReader and opens the file with the given name.
|
| |
| virtual | ~FileReader () |
| | Destroys the FileReader object and automatically closes the input stream.
|
| |
| void | openFile (const std::string &filename) |
| | Initializes the input stream with the given file (via its name).
|
| |
|
| std::ifstream | m_infile |
| | Input stream representing the file containing molecule data.
|
| |
File reader class which implements functionality to read data from input files.
◆ FileReader() [1/2]
| FileReader::FileReader |
( |
| ) |
|
Creates a new FileReader with no file initialized.
◆ FileReader() [2/2]
| FileReader::FileReader |
( |
const std::string & |
filename | ) |
|
|
explicit |
Creates a new FileReader and opens the file with the given name.
- Parameters
-
| filename | The name of the file to load into m_infile. |
◆ ~FileReader()
| virtual FileReader::~FileReader |
( |
| ) |
|
|
virtual |
Destroys the FileReader object and automatically closes the input stream.
◆ openFile()
| void FileReader::openFile |
( |
const std::string & |
filename | ) |
|
Initializes the input stream with the given file (via its name).
- Parameters
-
| filename | The name of the file to load into the input stream m_infile. |
◆ m_infile
| std::ifstream FileReader::m_infile |
|
protected |
Input stream representing the file containing molecule data.
The documentation for this class was generated from the following file: