Go to the documentation of this file.
46 <<
"Parse error, expected a " << expected
61 const word& compoundType,
65 IstreamConstructorTable::iterator cstrIter =
66 IstreamConstructorTablePtr_->find(compoundType);
68 if (cstrIter == IstreamConstructorTablePtr_->end())
71 <<
"Unknown compound type " << compoundType <<
nl <<
nl
72 <<
"Valid compound types:" <<
endl
73 << IstreamConstructorTablePtr_->sortedToc()
87 IstreamConstructorTablePtr_
88 && IstreamConstructorTablePtr_->found(
name)
95 if (type_ == COMPOUND)
97 if (compoundTokenPtr_->empty())
100 <<
"compound has already been transfered from token\n "
105 compoundTokenPtr_->empty() =
true;
108 return *compoundTokenPtr_;
112 parseError(
"compound");
113 return *compoundTokenPtr_;
token::compound tokenCompound
static autoPtr< compound > New(const word &type, Istream &)
Select null constructed.
Abstract base class for complex tokens.
A class for handling words, derived from string.
virtual ~compound()
Destructor.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
Ostream & endl(Ostream &os)
Add newline and flush stream.
InfoProxy< token > info() const
Return info proxy.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
compound & transferCompoundToken(const Istream &is)
static bool isCompound(const word &name)
Return true if name is a compound type.
static const char *const typeName
errorManip< error > abort(error &err)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static token undefinedToken
Static undefined token.
void parseError(const char *expected) const
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.