This class groups some functions used to interact with the operating system environment. More...
#include <utils.h>
Static Public Member Functions | |
static const string & | getLogFile () |
static int | getProcessors () |
static string | searchFile (const string) |
static void | setLogFile (const string &x) |
static void | setProcessors (int i) |
This class groups some functions used to interact with the operating system environment.
It handles:
Definition at line 445 of file utils.h.
static const string& frepple::utils::Environment::getLogFile | ( | ) | [inline, static] |
static int frepple::utils::Environment::getProcessors | ( | ) | [inline, static] |
string frepple::utils::Environment::searchFile | ( | const string | filename | ) | [static] |
Search for a file with a given name.
The following directories are searched in sequence to find a match:
Definition at line 68 of file utils/library.cpp.
void frepple::utils::Environment::setLogFile | ( | const string & | x | ) | [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 124 of file utils/library.cpp.
static void frepple::utils::Environment::setProcessors | ( | int | i | ) | [inline, static] |