44 const std::string& envName
50 os.writeEntry(
key, value);
71 printEnv(
os,
"arch",
"WM_ARCH");
72 printEnv(
os,
"compilerType",
"WM_COMPILER_TYPE");
73 printEnv(
os,
"compiler",
"WM_COMPILER");
74 printEnv(
os,
"mplib",
"WM_MPLIB");
75 printEnv(
os,
"options",
"WM_OPTIONS");
string getEnv(const std::string &envName)
Get environment value for given envName.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
A class for handling words, derived from Foam::string.
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)...
string hostName()
Return the system's host name, as per hostname(1)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
const std::string version
OpenFOAM version (name or stringified number) as a std::string.
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
const std::string build
OpenFOAM build information as a std::string.
Ostream & write(Ostream &os) const
Write the profiling system-info, use dictionary format.