58 <<
"Undefined token" <<
endl;
108 <<
"Error token" <<
endl;
119 os.
check(
"Ostream& operator<<(Ostream&, const token&)");
127 return os << char(pt);
133 return os << char(pt);
148 ostream& Foam::operator<<(ostream& os, const InfoProxy<token>& ip)
150 const token& t = ip.t_;
157 os <<
" an undefined token";
161 os <<
" the punctuation token " <<
'\'' << t.
pToken() <<
'\'';
165 os <<
" the word " <<
'\'' << t.
wordToken() <<
'\'';
204 os <<
" the empty compound of type " 209 os <<
" the compound of type " 220 os <<
" an unknown token type " <<
'\'' << int(t.
type()) <<
'\'';
228 Foam::Ostream& Foam::operator<<(Ostream& os, const InfoProxy<token>& ip)
230 const token& t = ip.t_;
237 os <<
" an undefined token";
241 os <<
" the punctuation token " <<
'\'' << t.
pToken() <<
'\'';
245 os <<
" the word " <<
'\'' << t.
wordToken() <<
'\'';
284 os <<
" the empty compound of type " 289 os <<
" the compound of type " 300 os <<
" an unknown token type " <<
'\'' << int(t.
type()) <<
'\'';
const variable & variableToken() const
doubleScalar doubleScalarToken_
const functionName & functionNameToken() const
punctuationToken pToken() const
longDoubleScalar * longDoubleScalarTokenPtr_
compound * compoundTokenPtr_
virtual bool check(const char *operation) const
Check IOstream status for given operation.
const word & wordToken() const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A token holds items read from Istream.
const verbatimString & verbatimStringToken() const
Ostream & endl(Ostream &os)
Add newline and flush stream.
functionName * functionNameTokenPtr_
#define SeriousErrorInFunction
Report an error message using Foam::SeriousError.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Abstract base class for complex tokens.
floatScalar floatScalarToken() const
virtual Istream & read(token &)=0
Return next token from stream.
Istream & operator>>(Istream &, directionInfo &)
verbatimString * verbatimStringTokenPtr_
punctuationToken
Standard punctuation tokens.
const compound & compoundToken() const
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void write(Ostream &) const =0
const string & stringToken() const
longDoubleScalar longDoubleScalarToken() const
floatScalar floatScalarToken_
#define WarningInFunction
Report a warning using Foam::Warning.
punctuationToken punctuationToken_
Ostream & operator<<(Ostream &, const ensightPart &)
variable * variableTokenPtr_
doubleScalar doubleScalarToken() const