ampsci
c++ program for high-precision atomic structure calculations of single-valence systems
Namespaces | Classes | Functions
IO Namespace Reference

In-out (timers, profilers, and read/write data) More...

Namespaces

 FRW
 

Classes

struct  IsVector
 Class to determine if a class template in vector. More...
 
struct  Option
 Simple struct; holds key-value pair, both strings. == compares key. More...
 
class  InputBlock
 Holds list of Options, and a list of other InputBlocks. Can be initialised with a list of options, with a string, or from a file (ifstream). Format for input is, e.g.,: More...
 

Functions

std::string removeSpaces (std::string str)
 Removes all white space (space, tab, newline), except for those in quotes.
 
std::string removeQuoteMarks (std::string str)
 Removes all quote marks.
 
void removeBlockComments (std::string &input)
 Removes all c++ style block comments from a string.
 
std::string removeComments (const std::string &input)
 Removes all c++ style comments from a string (block and line)
 
std::string expandIncludes (std::string input)
 Expands "#include" files.
 
template<typename T >
parse_str_to_T (const std::string &value_as_str)
 Parses a string to type T by stringstream.
 
std::string file_to_string (const std::istream &file)
 Parses entire file into string. Note: v. inefficient.
 
void print_line (const char c=' *', const int num=80)
 Prints a line of 'c' characters (dflt '*'), num chars long (dflt 80) to cout.
 
std::string time_date ()
 
std::string date ()
 
std::string time ()
 
bool operator== (InputBlock block, std::string_view name)
 
bool operator== (std::string_view name, InputBlock block)
 
bool operator!= (InputBlock block, std::string_view name)
 
bool operator!= (std::string_view name, InputBlock block)
 

Detailed Description

In-out (timers, profilers, and read/write data)