This class groups some functions used to interact with the operating system environment. More...
#include <utils.h>
Public Types | |
typedef map< string, XMLElement > | ParameterList |
Static Public Member Functions | |
static const string & | getLogFile () |
static int | getProcessorCores () |
static void | loadModule (string lib, ParameterList ¶meters) |
Function to dynamically load a shared library in frePPLe. More... | |
static void | printModules () |
static string | searchFile (const string) |
static void | setLogFile (const string &x) |
This class groups some functions used to interact with the operating system environment.
It handles:
typedef map<string,XMLElement> frepple::utils::Environment::ParameterList |
|
inlinestatic |
|
static |
Returns the number of processor cores on your machine.
Definition at line 175 of file utils/library.cpp.
|
static |
Function to dynamically load a shared library in frePPLe.
After loading the library, the function "initialize" of the module is executed.
The current implementation supports the following platforms:
Definition at line 239 of file utils/library.cpp.
|
static |
Print all modules that have been loaded.
Definition at line 459 of file utils/actions.cpp.
|
static |
Search for a file with a given name.
The following directories are searched in sequence to find a match:
Definition at line 107 of file utils/library.cpp.
|
static |
Updates the filename for logging error messages and warnings. The file is also opened for writing and the standard output and standard error output streams are redirected to it.
If the filename starts with '+' the log file is appended to instead of being overwritten.
Definition at line 197 of file utils/library.cpp.