Specify a file to include if it exists. Expects a single string to follow. More...
#include <OpenFOAM/includeIfPresentEntry.H>
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 57 of file includeIfPresentEntry.H.
Public Member Functions | |
ClassName ("includeIfPresent") | |
Runtime type information. | |
![]() | |
ClassName ("include") | |
Runtime type information. | |
![]() | |
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. | |
static bool | execute (const dictionary &parentDict, primitiveEntry &, Istream &) |
Execute the functionEntry in a primitiveEntry context. |
Additional Inherited Members | |
![]() | |
static fileName | includeFileName (Istream &) |
Read the include fileName from Istream, expand and return. |
ClassName | ( | "includeIfPresent" | ) |
Runtime type information.
|
static |
Execute the functionEntry in a sub-dict context.
Reimplemented from includeEntry.
Definition at line 67 of file includeIfPresentEntry.C.
References dictionary::read().
|
static |
Execute the functionEntry in a primitiveEntry context.
Reimplemented from includeEntry.
Definition at line 84 of file includeIfPresentEntry.C.
References primitiveEntry::read().