FEDEM Solver  R8.0
Source code of the dynamics solver
Functions
FFaAppInfo Namespace Reference

Namespace with functions returning information about the application. More...

Functions

void openConsole (bool withGUI=false)
 Sets this to be a console application, optionally with GUI too. More...
 
void closeConsole (bool acknowledge=true)
 Closes the current console window. More...
 
bool isConsole ()
 Returns true if this is a console-only application. More...
 
bool haveConsole ()
 Returns true if this application has a console windows. More...
 
std::string getVersion ()
 Returns the current program version. More...
 
std::string getUser ()
 Returns the user id of the executing process. More...
 
std::string getDate ()
 Returns the current date and time. More...
 
void init (const char *program)
 Initializes the program path. More...
 
std::string getProgramPath (const std::string &program, bool fnutts=true)
 Returns full path of a program, or blank if not existing. More...
 
std::string checkProgramPath (const std::string &program)
 Returns path of a program, or blank if not existing. More...
 
const std::string & getProgramPath ()
 Returns the program path. More...
 
std::string getCWD ()
 Returns the current working directory of the program. More...
 
bool isInCwd ()
 Returns whether this program is in current working dir or not. More...
 

Detailed Description

Namespace with functions returning information about the application.

E.g. UI-type (console, GUI), version number, user data, etc.

Function Documentation

◆ checkProgramPath()

std::string FFaAppInfo::checkProgramPath ( const std::string &  program)

Returns path of a program, or blank if not existing.

◆ closeConsole()

void FFaAppInfo::closeConsole ( bool  acknowledge = true)

Closes the current console window.

◆ getCWD()

std::string FFaAppInfo::getCWD ( )

Returns the current working directory of the program.

◆ getDate()

std::string FFaAppInfo::getDate ( )

Returns the current date and time.

◆ getProgramPath() [1/2]

const std::string & FFaAppInfo::getProgramPath ( )

Returns the program path.

◆ getProgramPath() [2/2]

std::string FFaAppInfo::getProgramPath ( const std::string &  program,
bool  fnutts = true 
)

Returns full path of a program, or blank if not existing.

◆ getUser()

std::string FFaAppInfo::getUser ( )

Returns the user id of the executing process.

◆ getVersion()

std::string FFaAppInfo::getVersion ( )

Returns the current program version.

◆ haveConsole()

bool FFaAppInfo::haveConsole ( )

Returns true if this application has a console windows.

◆ init()

void FFaAppInfo::init ( const char *  program)

Initializes the program path.

◆ isConsole()

bool FFaAppInfo::isConsole ( )

Returns true if this is a console-only application.

◆ isInCwd()

bool FFaAppInfo::isInCwd ( )

Returns whether this program is in current working dir or not.

◆ openConsole()

void FFaAppInfo::openConsole ( bool  withGUI = false)

Sets this to be a console application, optionally with GUI too.