44namespace 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()
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Macros for easy insertion into member function selection tables.
#define addNamedToMemberFunctionSelectionTable(baseType, thisType, funcName, argNames, lookupName)
Add to hash-table of functions with 'lookupName' as the key.
virtual const fileName & name() const
Return the name of the stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dictionary & topDict() const
Return the top of the tree.
fileName relativeName(const bool caseTag=false) const
The dictionary name relative to the case.
bool read(Istream &is)
Read dictionary from Istream. Discards the header.
A keyword and a list of tokens is an 'entry'.
A class for handling file names.
static std::string path(const std::string &str)
Return directory path name (part before last /)
static bool isAbsolute(const std::string &str)
A dictionary directive for including a file, expects a single string to follow.
static fileName resolveFile(const fileName &dir, const fileName &f, const dictionary &dict)
Expand include fileName and return.
static bool log
Report to stdout which file is included.
A functionEntry causes entries to be added/manipulated on the specified dictionary given an input str...
virtual bool execute()
Calculate the output fields.
Computes the natural logarithm of an input volScalarField.
A keyword and a list of tokens comprise a primitiveEntry. A primitiveEntry can be read,...
virtual const dictionary & dict() const
This entry is not a dictionary,.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
virtual void addWatch()
Add file watch on object (if registered and READ_IF_MODIFIED)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
void inplaceExpand(std::string &s, const HashTable< string > &mapping, const char sigil='$')
const fileOperation & fileHandler()
Get current file handler.
messageStream Info
Information stream (stdout output on master, null elsewhere)
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)