Go to the documentation of this file.
34 const Foam::word Foam::functionEntries::includeEntry::typeName
36 Foam::functionEntries::includeEntry::typeName_()
41 int Foam::functionEntries::includeEntry::debug(0);
48 namespace functionEntries
128 includeFileName(is.
name().
path(), rawFName, parentDict)
138 parentDict.
read(ifs);
146 ) <<
"Cannot open include file "
147 << (ifs.
name().size() ? ifs.
name() : rawFName)
148 <<
" while reading dictionary " << parentDict.
name()
166 includeFileName(is.
name().
path(), rawFName, parentDict)
176 entry.read(parentDict, ifs);
184 ) <<
"Cannot open include file "
185 << (ifs.
name().size() ? ifs.
name() : rawFName)
186 <<
" while reading dictionary " << parentDict.
name()
A keyword and a list of tokens is an 'entry'.
const fileName & name() const
Return the name of the stream.
A keyword and a list of tokens is a 'primitiveEntry'. An primitiveEntry can be read,...
A class for handling words, derived from string.
A class for handling file names.
const fileName & name() const
Return the dictionary name.
fileName path() const
Return directory path name (part before last /)
bool isAbsolute() const
Return true if file name is absolute.
static bool execute(dictionary &parentDict, Istream &)
Execute the functionEntry in a sub-dict context.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static bool report
Report which file is included to stdout.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Macros for easy insertion into member function selection tables.
A list of keyword definitions, which are a keyword followed by any number of values (e....
addToMemberFunctionSelectionTable(functionEntry, calcEntry, execute, dictionaryIstream)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
bool read(Istream &)
Read dictionary from Istream.
static fileName includeFileName(Istream &, const dictionary &)
Read the include fileName from Istream, expand and return.
string & inplaceExpand(string &, const HashTable< string, word, string::hash > &mapping, const char sigil='$')
Inplace expand occurences of variables according to the mapping.
virtual const fileName & name() const
Return the name of the stream.