13 #ifndef FFA_APPLICATION_INFO_H
14 #define FFA_APPLICATION_INFO_H
43 void init(
const char* program);
45 std::string
getProgramPath(
const std::string& program,
bool fnutts =
true);
Namespace with functions returning information about the application.
Definition: FFaAppInfo.H:25
std::string checkProgramPath(const std::string &program)
Returns path of a program, or blank if not existing.
Definition: FFaAppInfo.C:235
void closeConsole(bool acknowledge=true)
Closes the current console window.
Definition: FFaAppInfo.C:89
void openConsole(bool withGUI=false)
Sets this to be a console application, optionally with GUI too.
Definition: FFaAppInfo.C:61
bool haveConsole()
Returns true if this application has a console windows.
Definition: FFaAppInfo.C:116
std::string getCWD()
Returns the current working directory of the program.
Definition: FFaAppInfo.C:152
bool isConsole()
Returns true if this is a console-only application.
Definition: FFaAppInfo.C:110
void init(const char *program)
Initializes the program path.
Definition: FFaAppInfo.C:161
std::string getUser()
Returns the user id of the executing process.
Definition: FFaAppInfo.C:129
std::string getVersion()
Returns the current program version.
Definition: FFaAppInfo.C:122
bool isInCwd()
Returns whether this program is in current working dir or not.
Definition: FFaAppInfo.C:261
std::string getProgramPath(const std::string &program, bool fnutts=true)
Returns full path of a program, or blank if not existing.
Definition: FFaAppInfo.C:212
std::string getDate()
Returns the current date and time.
Definition: FFaAppInfo.C:143