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