Namespace for OpenFOAM version information. More...
Functions | |
| bool | patched () |
| Test if the patch string appears to be in use, which is when it is defined (non-zero). | |
| unsigned | labelByteSize (const std::string &str) |
| Extract label size (in bytes) from "label=" tag in string. | |
| unsigned | scalarByteSize (const std::string &str) |
| Extract scalar size (in bytes) from "scalar=" tag in string. | |
| void | printBuildInfo (std::ostream &os, const bool full=true) |
| Print information about version, build, arch to output stream. | |
| std::string | configuredProjectDir () |
| Compile-time definition of the OpenFOAM project directory or empty if not defined. | |
| std::string | configuredEtcDir () |
| Compile-time definition of the OpenFOAM etc/ directory or empty if not defined. | |
Variables | |
| const int | api |
| OpenFOAM api number (integer) corresponding to the value of OPENFOAM at the time of compilation. | |
| const std::string | patch |
| OpenFOAM patch number as a std::string. | |
| const std::string | build |
| OpenFOAM build information as a std::string. | |
| const std::string | buildArch |
| OpenFOAM build architecture information (machine endian, label/scalar sizes) as a std::string. | |
| const std::string | version |
| OpenFOAM version (name or stringified number) as a std::string. | |
Namespace for OpenFOAM version information.
Version information.
For example,
FOAM_EXTRA_CXXFLAGS='-DFOAM_CONFIGURED_PROJECT_ETC=\"/etc/openfoam\"'
The foamVersion.H file is located directly in the src/OpenFOAM/include directory for easier use by external packages and to allow easier modification during packaging.
| bool patched | ( | ) |
Test if the patch string appears to be in use, which is when it is defined (non-zero).
Referenced by argList::parse(), error::write(), and IOerror::write().

| unsigned labelByteSize | ( | const std::string & | str | ) |
Extract label size (in bytes) from "label=" tag in string.
Referenced by IOobject::parseHeader().

| unsigned scalarByteSize | ( | const std::string & | str | ) |
Extract scalar size (in bytes) from "scalar=" tag in string.
Referenced by IOobject::parseHeader().

| void printBuildInfo | ( | std::ostream & | os, |
| const bool | full = true ) |
Print information about version, build, arch to output stream.
Eg,
| os | the output stream |
| full | includes Arch information |
References os().
Referenced by argList::parse(), and argList::printUsage().


| std::string configuredProjectDir | ( | ) |
Compile-time definition of the OpenFOAM project directory or empty if not defined.
Functional equivalent to WM_PROJECT_DIR.
| std::string configuredEtcDir | ( | ) |
Compile-time definition of the OpenFOAM etc/ directory or empty if not defined.
Functional equivalent to WM_PROJECT_DIR/etc
|
extern |
OpenFOAM api number (integer) corresponding to the value of OPENFOAM at the time of compilation.
The value is 0 if OPENFOAM was not defined.
Referenced by Foam::apiYear(), ensightGeoFile::beginGeometry(), dynamicCode::checkSecurity(), messageStream::deprecated(), argList::displayDoc(), Foam::etcDirs(), Foam::findEtcEntries(), argList::parse(), argList::printMan(), systemCall::read(), foamReport::setStaticBuiltins(), error::warnAboutAge(), error::warnAboutAge(), error::write(), IOerror::write(), and IOobject::writeBanner().
|
extern |
OpenFOAM patch number as a std::string.
Referenced by argList::parse(), foamReport::setStaticBuiltins(), error::write(), and IOerror::write().
|
extern |
OpenFOAM build information as a std::string.
Referenced by argList::parse(), foamReport::setStaticBuiltins(), and profilingSysInfo::writeEntries().
|
extern |
OpenFOAM build architecture information (machine endian, label/scalar sizes) as a std::string.
Referenced by argList::parse(), foamReport::setStaticBuiltins(), IOobject::writeHeaderContent(), and IOobject::writeHeaderContent().
|
extern |
OpenFOAM version (name or stringified number) as a std::string.
Referenced by argList::parse(), foamReport::setStaticBuiltins(), and profilingSysInfo::writeEntries().