Class Input

Class Documentation

class Input

Public Functions

Input(int, char**)
void ShowConfig()
std::string GetString(std::string, std::string, int)

Read a string from the input file.

real GetReal(std::string, std::string, int)

Read a real number from the input file.

int GetInt(std::string, std::string, int)

Read an integer from the input file.

int CheckEntry(std::string, std::string)

Check that a block+entry is present in the input file

template<typename T>
T Get(std::string, std::string, int)

read a variable from the input file (abort if not found)

template<typename T>
T GetOrSet(std::string, std::string, int, T)

read a variable from the input file (set it to T if not found)

bool CheckBlock(std::string)

check that whether a block is defined in the input file

bool CheckForAbort()
void CheckForStopFile()
Input()
void PrintLogo()

Public Members

bool restartRequested = {false}
int restartFileNumber
int maxCycles = {-1}
bool forceNoWrite = {false}

Public Static Attributes

static bool abortRequested = false