Specify an include file when reading dictionaries, expects a single string to follow. More...
Public Member Functions | |
ClassName ("include") | |
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 | log |
Report which file is included to stdout. More... | |
Static Protected Member Functions | |
static fileName | includeFileName (Istream &, const dictionary &) |
Read the include fileName from Istream, expand and return. More... | |
static fileName | includeFileName (const fileName &dir, const fileName &, const dictionary &) |
Expand include fileName and return. More... | |
Specify an include file when reading dictionaries, expects a single string to follow.
An example of the #include
directive:
#include "includeFile"
The usual expansion of environment variables and other constructs (eg, the ~OpenFOAM/
expansion) is retained.
Definition at line 62 of file includeEntry.H.
|
staticprotected |
Read the include fileName from Istream, expand and return.
Definition at line 71 of file includeEntry.C.
References Foam::stringOps::inplaceExpand(), fileName::isAbsolute(), IOstream::name(), and path().
|
staticprotected |
Expand include fileName and return.
Definition at line 94 of file includeEntry.C.
References includeEntry::execute(), Foam::stringOps::inplaceExpand(), and fileName::isAbsolute().
ClassName | ( | "include" | ) |
Runtime type information.
|
static |
Execute the functionEntry in a sub-dict context.
Definition at line 120 of file includeEntry.C.
References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::Info, includeEntry::log, dictionaryName::name(), IFstream::name(), IOstream::name(), fileName::path(), and dictionary::read().
Referenced by includeEntry::includeFileName(), and entry::New().
|
static |
Execute the functionEntry in a primitiveEntry context.
Definition at line 157 of file includeEntry.C.
References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::Info, includeEntry::log, dictionaryName::name(), IFstream::name(), IOstream::name(), fileName::path(), and primitiveEntry::read().
|
static |
Report which file is included to stdout.
Definition at line 94 of file includeEntry.H.
Referenced by includeIfPresentEntry::execute(), and includeEntry::execute().