Specify a file to include if it exists. Expects a single string to follow. More...
Public Member Functions | |
ClassName ("includeIfPresent") | |
Runtime type information. More... | |
![]() | |
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 (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... | |
Private Member Functions | |
includeIfPresentEntry (const includeIfPresentEntry &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const includeIfPresentEntry &) |
Disallow default bitwise assignment. More... | |
Additional Inherited Members | |
![]() | |
static bool | report |
Report which file is included to stdout. More... | |
![]() | |
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 a file to include if it exists. Expects a single string to follow.
The #includeIfPresent
directive is similar to the #include
directive, but does not generate an error if the file does not exist.
Definition at line 56 of file includeIfPresentEntry.H.
|
private |
Disallow default bitwise copy construct.
|
private |
Disallow default bitwise assignment.
ClassName | ( | "includeIfPresent" | ) |
Runtime type information.
|
static |
Execute the functionEntry in a sub-dict context.
Definition at line 67 of file includeIfPresentEntry.C.
References Foam::endl(), Foam::Info, dictionary::read(), and includeEntry::report.
|
static |
Execute the functionEntry in a primitiveEntry context.
Definition at line 89 of file includeIfPresentEntry.C.
References Foam::endl(), Foam::Info, and includeEntry::report.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.