43 void Foam::token::parseError(
const char* expected)
const 46 <<
"Parse error, expected a " << expected
47 <<
", found \n " << info() <<
endl;
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 transferred from token\n " 105 compoundTokenPtr_->empty() =
true;
108 return *compoundTokenPtr_;
112 parseError(
"compound");
113 return *compoundTokenPtr_;
virtual ~compound()
Destructor.
compound & transferCompoundToken(const Istream &is)
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.
token::compound tokenCompound
Abstract base class for complex tokens.
A class for handling words, derived from string.
static token undefinedToken
Static undefined token.
errorManip< error > abort(error &err)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
static bool isCompound(const word &name)
Return true if name is a compound type.
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static const char *const typeName
static autoPtr< compound > New(const word &type, Istream &)
Select null constructed.