FEDEM Solver
R8.0
Source code of the dynamics solver
|
Class to store information about the application. More...
#include <FFaAppInfo.H>
Public Member Functions | |
FFaAppInfo () | |
The constructor gets meta information of this application. More... | |
Static Public Member Functions | |
static void | openConsole (bool withGUI=false) |
Sets this to be a console application, optionally with GUI too. More... | |
static void | closeConsole (bool acknowledge=true) |
Closes the current console window. More... | |
static bool | isConsole () |
Returns true if this is a console-only application. More... | |
static bool | haveConsole () |
Returns true if this application has a console windows. More... | |
static void | init (const char *program) |
Initializes the program path. More... | |
static const std::string & | getProgramPath () |
Returns the program path. More... | |
static bool | isInCwd () |
Returns whether this program is in current working dir or not. More... | |
static std::string | getCWD () |
Returns the current working directory of the program. More... | |
static std::string | getProgramPath (const std::string &program, bool fnutts=true) |
Returns full path of a program, or blank if not existing. More... | |
static std::string | checkProgramPath (const std::string &program) |
Returns path of a program, or blank if not existing. More... | |
Public Attributes | |
std::string | version |
Current program version. More... | |
std::string | user |
User name of running process. More... | |
std::string | date |
Current date and time. More... | |
Static Private Attributes | |
static char | consoleFlag = 0 |
0: no console, 1: only console, 2: console+GUI More... | |
static int | runInConsole = -1 |
If positive, the executable is run from console. More... | |
static bool | iAmInCwd = false |
If true, the executable is in current work dir. More... | |
static std::string | programPath |
Absolute path of this executable. More... | |
Class to store information about the application.
E.g. UI-type (console, GUI), version number, user data, etc.
FFaAppInfo::FFaAppInfo | ( | ) |
The constructor gets meta information of this application.
|
static |
Returns path of a program, or blank if not existing.
|
static |
Closes the current console window.
|
static |
Returns the current working directory of the program.
|
inlinestatic |
Returns the program path.
|
static |
Returns full path of a program, or blank if not existing.
|
inlinestatic |
Returns true if this application has a console windows.
|
static |
Initializes the program path.
|
inlinestatic |
Returns true if this is a console-only application.
|
inlinestatic |
Returns whether this program is in current working dir or not.
|
static |
Sets this to be a console application, optionally with GUI too.
|
staticprivate |
0: no console, 1: only console, 2: console+GUI
std::string FFaAppInfo::date |
Current date and time.
|
staticprivate |
If true, the executable is in current work dir.
|
staticprivate |
Absolute path of this executable.
|
staticprivate |
If positive, the executable is run from console.
std::string FFaAppInfo::user |
User name of running process.
std::string FFaAppInfo::version |
Current program version.