Specify an etc file to include when reading dictionaries, expects a single string to follow. More...
Public Member Functions | |
ClassName ("includeEtc") | |
Runtime type information. More... | |
![]() | |
declareMemberFunctionSelectionTable (bool, functionEntry, execute, dictionaryIstream,(dictionary &parentDict, Istream &is),(parentDict, is)) | |
declareMemberFunctionSelectionTable (bool, functionEntry, execute, primitiveEntryIstream,(const dictionary &parentDict, primitiveEntry &entry, Istream &is),(parentDict, entry, is)) | |
Static Public Member Functions | |
static bool | execute (dictionary &parentDict, Istream &) |
Execute the functionEntry in a sub-dict context. More... | |
static bool | execute (const dictionary &parentDict, primitiveEntry &, Istream &) |
Execute the functionEntry in a primitiveEntry context. More... | |
![]() | |
static bool | execute (const word &functionName, dictionary &parentDict, Istream &) |
Execute the functionEntry in a sub-dict context. More... | |
static bool | execute (const word &functionName, const dictionary &parentDict, primitiveEntry &, Istream &) |
Execute the functionEntry in a primitiveEntry context. More... | |
Static Public Attributes | |
static bool | report |
Report which file is included to stdout. More... | |
Private Member Functions | |
includeEtcEntry (const includeEtcEntry &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const includeEtcEntry &) |
Disallow default bitwise assignment. More... | |
Static Private Member Functions | |
static fileName | includeEtcFileName (const fileName &, const dictionary &) |
Expand include fileName and return. More... | |
Specify an etc file to include when reading dictionaries, expects a single string to follow.
Searches for files from user/group/shipped directories. The search scheme allows for version-specific and version-independent files using the following hierarchy:
An example of the #includeEtc
directive:
#includeEtc "etcFile"
The usual expansion of environment variables and other constructs is retained.
Definition at line 77 of file includeEtcEntry.H.
|
private |
Disallow default bitwise copy construct.
|
private |
Disallow default bitwise assignment.
|
staticprivate |
Expand include fileName and return.
Definition at line 72 of file includeEtcEntry.C.
References dict, f(), Foam::findEtcFile(), Foam::stringOps::inplaceExpand(), and fileName::isAbsolute().
ClassName | ( | "includeEtc" | ) |
Runtime type information.
|
static |
Execute the functionEntry in a sub-dict context.
Definition at line 98 of file includeEtcEntry.C.
References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::Info, dictionaryName::name(), IFstream::name(), dictionary::read(), and includeEtcEntry::report.
|
static |
Execute the functionEntry in a primitiveEntry context.
Definition at line 135 of file includeEtcEntry.C.
References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::Info, dictionaryName::name(), IFstream::name(), and includeEtcEntry::report.
|
static |
Report which file is included to stdout.
Definition at line 102 of file includeEtcEntry.H.
Referenced by includeEtcEntry::execute().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.