A base class of file reader.
More...
#include <file_reader.h>
A base class of file reader.
This class is supposed to be a base class to read a text file. it will open a file with a given filename. The function readLine() will read a line to a string stream. The function isOpen() check if the file is open. The destructor will close the file automatically.
◆ FileReader()
ModuleIO::FileReader::FileReader |
( |
std::string |
filename | ) |
|
◆ ~FileReader()
ModuleIO::FileReader::~FileReader |
( |
| ) |
|
◆ isOpen()
bool ModuleIO::FileReader::isOpen |
( |
| ) |
const |
◆ readLine()
void ModuleIO::FileReader::readLine |
( |
| ) |
|
◆ ifs
std::ifstream ModuleIO::FileReader::ifs |
|
private |
◆ ss
std::stringstream ModuleIO::FileReader::ss |
The documentation for this class was generated from the following files:
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/file_reader.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/file_reader.cpp