ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Attributes | List of all members
ModuleIO::FileReader Class Reference

A base class of file reader. More...

#include <file_reader.h>

Inheritance diagram for ModuleIO::FileReader:
Collaboration diagram for ModuleIO::FileReader:

Public Member Functions

 FileReader (std::string filename)
 
 ~FileReader ()
 
bool isOpen () const
 
void readLine ()
 

Public Attributes

std::stringstream ss
 

Private Attributes

std::ifstream ifs
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FileReader()

ModuleIO::FileReader::FileReader ( std::string  filename)
Here is the call graph for this function:

◆ ~FileReader()

ModuleIO::FileReader::~FileReader ( )

Member Function Documentation

◆ isOpen()

bool ModuleIO::FileReader::isOpen ( ) const
Here is the caller graph for this function:

◆ readLine()

void ModuleIO::FileReader::readLine ( )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ ifs

std::ifstream ModuleIO::FileReader::ifs
private

◆ ss

std::stringstream ModuleIO::FileReader::ss

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