8 #ifndef FFA_APPLICATION_INFO_H
9 #define FFA_APPLICATION_INFO_H
38 void init(
const char* program);
40 std::string
getProgramPath(
const std::string& program,
bool fnutts =
true);
Namespace with functions returning information about the application.
Definition: FFaAppInfo.H:20
std::string checkProgramPath(const std::string &program)
Returns path of a program, or blank if not existing.
Definition: FFaAppInfo.C:230
void closeConsole(bool acknowledge=true)
Closes the current console window.
Definition: FFaAppInfo.C:84
void openConsole(bool withGUI=false)
Sets this to be a console application, optionally with GUI too.
Definition: FFaAppInfo.C:56
bool haveConsole()
Returns true if this application has a console windows.
Definition: FFaAppInfo.C:111
std::string getCWD()
Returns the current working directory of the program.
Definition: FFaAppInfo.C:147
bool isConsole()
Returns true if this is a console-only application.
Definition: FFaAppInfo.C:105
void init(const char *program)
Initializes the program path.
Definition: FFaAppInfo.C:156
std::string getUser()
Returns the user id of the executing process.
Definition: FFaAppInfo.C:124
std::string getVersion()
Returns the current program version.
Definition: FFaAppInfo.C:117
bool isInCwd()
Returns whether this program is in current working dir or not.
Definition: FFaAppInfo.C:256
std::string getProgramPath(const std::string &program, bool fnutts=true)
Returns full path of a program, or blank if not existing.
Definition: FFaAppInfo.C:207
std::string getDate()
Returns the current date and time.
Definition: FFaAppInfo.C:138