ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
tool_check.h
Go to the documentation of this file.
1#ifndef TOOL_CHECK_H
2#define TOOL_CHECK_H
3
4#include <cassert>
5#include <complex>
6#include <fstream>
7#include <iomanip>
8#include <iostream>
9#include <string>
10#include <valarray>
11#include <vector>
12
13namespace ModuleBase
14{
23void CHECK_NAME(std::ifstream &ifs, const std::string &name_in, bool quit = true);
24
33void CHECK_INT(std::ifstream &ifs, const int &v, bool quit = true);
34
43void CHECK_DOUBLE(std::ifstream &ifs, const double &v, bool quit = true);
44
53void CHECK_STRING(std::ifstream &ifs, const std::string &v, bool quit = true);
54} // namespace ModuleBase
55
56#endif
Definition array_pool.h:6
void CHECK_DOUBLE(std::ifstream &ifs, const double &v, bool quit)
Check the next input from ifs is double. This is a global function.
Definition tool_check.cpp:49
void CHECK_INT(std::ifstream &ifs, const int &v, bool quit)
Check the next input from ifs is integer. This is a global function.
Definition tool_check.cpp:29
void CHECK_STRING(std::ifstream &ifs, const std::string &v, bool quit)
Check the next input from ifs is std::string. This is a global function.
Definition tool_check.cpp:70
void CHECK_NAME(std::ifstream &ifs, const std::string &name_in, bool quit)
Check the next input from ifs is std::string. This is a global function.
Definition tool_check.cpp:7