44 const std::string& envName
50 os.writeEntry(key, value);
68 printEnv(
os,
"arch",
"WM_ARCH");
69 printEnv(
os,
"compilerType",
"WM_COMPILER_TYPE");
70 printEnv(
os,
"compiler",
"WM_COMPILER");
71 printEnv(
os,
"mplib",
"WM_MPLIB");
72 printEnv(
os,
"options",
"WM_OPTIONS");
78 os.beginBlock(keyword);
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static std::string dateTime()
The current wall-clock date/time (in local time) as a string in ISO-8601 format (yyyy-mm-ddThh:mm:ss)...
void writeEntries(Ostream &os) const
Write system-info as dictionary entries.
void writeEntry(const word &keyword, Ostream &os) const
Write system-info as dictionary.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
const std::string build
OpenFOAM build information as a std::string.
const std::string version
OpenFOAM version (name or stringified number) as a std::string.
string getEnv(const std::string &envName)
Get environment value for given envName.
string hostName()
Return the system's host name, as per hostname(1).