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()
bool read(Istream &)
Read dictionary from Istream.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Ostream & endl(Ostream &os)
Add newline and flush stream.
static bool execute(dictionary &parentDict, Istream &)
Execute the functionEntry in a sub-dict context.
const fileName & name() const
Return the name of the stream.
const fileName & name() const
Return the dictionary name.
addToMemberFunctionSelectionTable(functionEntry, calcEntry, execute, dictionaryIstream)
A keyword and a list of tokens is a 'primitiveEntry'. An primitiveEntry can be read, written and printed, and the types and values of its tokens analysed.
A class for handling words, derived from string.
bool isAbsolute() const
Return true if file name is absolute.
virtual const fileName & name() const
Return the name of the stream.
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
static fileName includeFileName(Istream &, const dictionary &)
Read the include fileName from Istream, expand and return.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Macros for easy insertion into member function selection tables.
string & inplaceExpand(string &, const HashTable< string, word, string::hash > &mapping, const char sigil= '$')
Inplace expand occurences of variables according to the mapping.
virtual bool read(const dictionary &, Istream &)
Read tokens from the given stream.
static bool log
Report which file is included to stdout.
fileName path() const
Return directory path name (part before last /)