Go to the documentation of this file.
65 Foam::functionEntry::functionEntry
84 const word& functionName,
91 if (!executedictionaryIstreamMemberFunctionTablePtr_)
94 <<
"Not yet initialized, function = "
102 executedictionaryIstreamMemberFunctionTablePtr_->cfind(functionName);
107 <<
"Unknown functionEntry '" << functionName
110 <<
"Valid functionEntries :" <<
endl
111 << executedictionaryIstreamMemberFunctionTablePtr_->sortedToc()
115 return mfIter()(parentDict, is);
121 const word& functionName,
129 if (!executeprimitiveEntryIstreamMemberFunctionTablePtr_)
132 <<
"Not yet initialized, function = "
140 executeprimitiveEntryIstreamMemberFunctionTablePtr_->cfind
148 <<
"Unknown functionEntry '" << functionName
151 <<
"Valid functionEntries :" <<
endl
152 << executeprimitiveEntryIstreamMemberFunctionTablePtr_->sortedToc()
156 return mfIter()(parentDict,
entry, is);
163 const token& tok = operator[](0);
167 for (
size_t i = 0; i <
s.size(); ++i)
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 words, derived from Foam::string.
virtual void write(Ostream &os) const
Write.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
const string & stringToken() const
Return const reference to the string contents.
bool fatalCheck(const char *operation) const
Check IOstream status for given operation.
Generic input stream using a standard (STL) stream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A token holds an item read from Istream.
const fileName & name() const
The dictionary name.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
word name(const complex &c)
Return string representation of complex.
virtual const fileName & name() const
Return the name of the stream.
defineMemberFunctionSelectionTable(edgeMesh, write, fileExtension)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static token readLine(const word &key, Istream &is)
Read line and return as a string token.
label lineNumber() const
Const access to the current stream line number.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static bool execute(const word &functionName, dictionary &parentDict, Istream &is)
Execute the functionEntry in a sub-dict context.