Go to the documentation of this file.
44 namespace functionEntries
60 primitiveEntryIstream,
78 primitiveEntryIstream,
97 primitiveEntryIstream,
131 const bool mandatory,
152 if (isA<regIOobject>(top))
161 parentDict.
read(ifs);
171 <<
"Cannot open include file "
172 << (ifs.name().size() ? ifs.name() : rawName)
173 <<
" while reading dictionary " << parentDict.
relativeName()
182 const bool mandatory,
204 if (isA<regIOobject>(top))
213 entry.read(parentDict, ifs);
223 <<
"Cannot open include file "
224 << (ifs.name().size() ? ifs.name() : rawName)
225 <<
" while reading dictionary " << parentDict.
relativeName()
240 return includeEntry::execute(
true, parentDict, is);
251 return includeEntry::execute(
true, parentDict,
entry, is);
261 return includeEntry::execute(
false, parentDict, is);
272 return includeEntry::execute(
false, parentDict,
entry, is);
A keyword and a list of tokens is an 'entry'.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A keyword and a list of tokens comprise a primitiveEntry. A primitiveEntry can be read,...
A class for handling file names.
static std::string path(const std::string &str)
Return directory path name (part before last /)
virtual void addWatch()
Add file watch on object (if registered and READ_IF_MODIFIED)
const fileOperation & fileHandler()
Get current file handler.
void inplaceExpand(std::string &s, const HashTable< string > &mapping, const char sigil='$')
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
messageStream Info
Information stream (stdout output on master, null elsewhere)
fileName relativeName(const bool caseTag=false) const
The dictionary name relative to the case.
Macros for easy insertion into member function selection tables.
static fileName resolveFile(const fileName &dir, const fileName &f, const dictionary &dict)
Expand include fileName and return.
virtual const fileName & name() const
Return the name of the stream.
static bool log
Report to stdout which file is included.
const dictionary & topDict() const
Return the top of the tree.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
addNamedToMemberFunctionSelectionTable(functionEntry, calcEntry, execute, dictionaryIstream, calc)
bool read(Istream &is)
Read dictionary from Istream. Discards the header.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
static bool execute(dictionary &parentDict, Istream &is)
Include file (if it exists) in a sub-dict context.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
static bool execute(const bool mandatory, dictionary &parentDict, Istream &is)
Include file in a sub-dict context.
static bool isAbsolute(const std::string &str)