OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

includeIfPresentEntry Class Reference

Specify a file to include if it exists. Expects a single string to follow. More...

Inheritance diagram for includeIfPresentEntry:
Collaboration diagram for includeIfPresentEntry:

List of all members.


Public Member Functions

 ClassName ("includeIfPresent")
 Runtime type information.

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.

Detailed Description

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.

See also:
Foam::functionEntries::includeEntry
Source files

Definition at line 52 of file includeIfPresentEntry.H.


Member Function Documentation

ClassName ( "includeIfPresent"   ) 

Runtime type information.

bool execute ( dictionary &  parentDict,
Istream &  is 
) [static]

Execute the functionEntry in a sub-dict context.

Reimplemented from includeEntry.

Definition at line 59 of file includeIfPresentEntry.C.

bool execute ( const dictionary &  parentDict,
primitiveEntry &  entry,
Istream &  is 
) [static]

Execute the functionEntry in a primitiveEntry context.

Reimplemented from includeEntry.

Definition at line 76 of file includeIfPresentEntry.C.

References dictionary::read().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd