52 const word& functionName,
59 "functionEntry::execute" 60 "(const word& functionName, dictionary& parentDict, Istream&)" 63 if (!executedictionaryIstreamMemberFunctionTablePtr_)
65 cerr<<
"functionEntry::execute" 66 <<
"(const word&, dictionary&, Istream&)" 67 <<
" not yet initialized, function = " 74 executedictionaryIstreamMemberFunctionTable::iterator mfIter =
75 executedictionaryIstreamMemberFunctionTablePtr_->find(functionName);
77 if (mfIter == executedictionaryIstreamMemberFunctionTablePtr_->end())
80 <<
"Unknown functionEntry '" << functionName
83 <<
"Valid functionEntries are :" <<
endl 84 << executedictionaryIstreamMemberFunctionTablePtr_->toc()
88 return mfIter()(parentDict, is);
94 const word& functionName,
102 "functionEntry::execute" 103 "(const word&, const dictionary&, primitiveEntry&, Istream&)" 106 if (!executeprimitiveEntryIstreamMemberFunctionTablePtr_)
108 cerr<<
"functionEntry::execute" 109 <<
"(const word&, const dictionary&, primitiveEntry&, Istream&)" 110 <<
" not yet initialized, function = " 117 executeprimitiveEntryIstreamMemberFunctionTable::iterator mfIter =
118 executeprimitiveEntryIstreamMemberFunctionTablePtr_->find(functionName);
120 if (mfIter == executeprimitiveEntryIstreamMemberFunctionTablePtr_->end())
123 <<
"Unknown functionEntry '" << functionName
126 <<
"Valid functionEntries are :" <<
endl 127 << executeprimitiveEntryIstreamMemberFunctionTablePtr_->toc()
131 return mfIter()(parentDict, entry, is);
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...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.
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.
static bool execute(const word &functionName, dictionary &parentDict, Istream &)
Execute the functionEntry in a sub-dict context.
virtual const fileName & name() const
Return the name of the stream.
label lineNumber() const
Return current stream line number.
defineMemberFunctionSelectionTable(edgeMesh, write, fileExtension)
void fatalCheck(const char *operation) const
Check IOstream status for given operation.