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");
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.
virtual Ostream & endBlock()
Write end block group.
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.
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
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
const std::string build
OpenFOAM build information as a std::string.