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