ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
file_reader.h
Go to the documentation of this file.
1#ifndef FILE_READER_H
2#define FILE_READER_H
3
4#include <fstream>
5#include <sstream>
6#include <string>
7
8namespace ModuleIO
9{
10
19{
20 public:
21 // Default constructor
22 FileReader(std::string filename);
24
25 // Check if file is open
26 bool isOpen() const;
27
28 // read a line to string stream
29 void readLine();
30
31 std::stringstream ss;
32
33 private:
34 std::ifstream ifs;
35};
36
37} // namespace ModuleIO
38
39#endif
A base class of file reader.
Definition file_reader.h:19
void readLine()
Definition file_reader.cpp:34
std::stringstream ss
Definition file_reader.h:31
bool isOpen() const
Definition file_reader.cpp:28
~FileReader()
Definition file_reader.cpp:19
std::ifstream ifs
Definition file_reader.h:34
This class has two functions: restart psi from the previous calculation, and write psi to the disk.
Definition cal_dos.h:9