Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Protected Member Functions | Private Member Functions
includeEntry Class Reference

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

Inheritance diagram for includeEntry:
Inheritance graph
[legend]
Collaboration diagram for includeEntry:
Collaboration graph
[legend]

Public Member Functions

 ClassName ("include")
 Runtime type information. More...
 
- Public Member Functions inherited from functionEntry
 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 Public Member Functions inherited from functionEntry
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 report
 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...
 

Private Member Functions

 includeEntry (const includeEntry &)
 Disallow default bitwise copy construct. More...
 
void operator= (const includeEntry &)
 Disallow default bitwise assignment. More...
 

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 62 of file includeEntry.H.

Constructor & Destructor Documentation

◆ includeEntry()

includeEntry ( const includeEntry )
private

Disallow default bitwise copy construct.

Member Function Documentation

◆ operator=()

void operator= ( const includeEntry )
private

Disallow default bitwise assignment.

◆ includeFileName() [1/2]

Foam::fileName includeFileName ( Istream is,
const dictionary dict 
)
staticprotected

Read the include fileName from Istream, expand and return.

Definition at line 71 of file includeEntry.C.

References dict, Foam::stringOps::inplaceExpand(), fileName::isAbsolute(), IOstream::name(), and fileName::path().

Here is the call graph for this function:

◆ includeFileName() [2/2]

Foam::fileName includeFileName ( const fileName dir,
const fileName f,
const dictionary dict 
)
staticprotected

Expand include fileName and return.

Definition at line 94 of file includeEntry.C.

References dict, f(), Foam::stringOps::inplaceExpand(), and fileName::isAbsolute().

Here is the call graph for this function:

◆ ClassName()

ClassName ( "include"  )

Runtime type information.

◆ execute() [1/2]

bool execute ( dictionary parentDict,
Istream is 
)
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, dictionaryName::name(), IFstream::name(), IOstream::name(), fileName::path(), dictionary::read(), and includeEntry::report.

Referenced by entry::New().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ execute() [2/2]

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

Field Documentation

◆ report

bool report
static

Report which file is included to stdout.

Definition at line 94 of file includeEntry.H.

Referenced by includeIfPresentEntry::execute(), and includeEntry::execute().


The documentation for this class was generated from the following files: