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

includeEntry Class Reference

Specify an include file when reading dictionaries, expects a single string to follow. More...

Inheritance diagram for includeEntry:
Collaboration diagram for includeEntry:

List of all members.


Public Member Functions

 ClassName ("include")
 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.

Static Protected Member Functions

static fileName includeFileName (Istream &)
 Read the include fileName from Istream, expand and return.

Detailed Description

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.

See also:
fileName, string::expand()
Source files

Definition at line 58 of file includeEntry.H.


Member Function Documentation

Foam::fileName includeFileName ( Istream &  is  )  [static, protected]

Read the include fileName from Istream, expand and return.

Definition at line 59 of file includeEntry.C.

ClassName ( "include"   ) 

Runtime type information.

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

Execute the functionEntry in a sub-dict context.

Reimplemented in includeIfPresentEntry.

Definition at line 79 of file includeEntry.C.

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

Execute the functionEntry in a primitiveEntry context.

Reimplemented in includeIfPresentEntry.

Definition at line 108 of file includeEntry.C.


The documentation for this class was generated from the following files:
  • src/OpenFOAM/db/dictionary/functionEntries/includeEntry/includeEntry.H
  • src/OpenFOAM/db/dictionary/functionEntries/includeEntry/includeEntry.C
Copyright © 2000-2009 OpenCFD Ltd