58 <<
"Undefined token" <<
endl;
98 <<
"Error token" <<
endl;
109 os.
check(
"Ostream& operator<<(Ostream&, const token&)");
117 return os << char(pt);
123 return os << char(pt);
138 ostream& Foam::operator<<(ostream& os, const InfoProxy<token>& ip)
140 const token& t = ip.t_;
147 os <<
" an undefined token";
151 os <<
" the punctuation token " <<
'\'' << t.
pToken() <<
'\'';
155 os <<
" the word " <<
'\'' << t.
wordToken() <<
'\'';
186 os <<
" the empty compound of type " 191 os <<
" the compound of type " 202 os <<
" an unknown token type " <<
'\'' << int(t.
type()) <<
'\'';
210 Foam::Ostream& Foam::operator<<(Ostream& os, const InfoProxy<token>& ip)
212 const token& t = ip.t_;
219 os <<
" an undefined token";
223 os <<
" the punctuation token " <<
'\'' << t.
pToken() <<
'\'';
227 os <<
" the word " <<
'\'' << t.
wordToken() <<
'\'';
258 os <<
" the empty compound of type " 263 os <<
" the compound of type " 274 os <<
" an unknown token type " <<
'\'' << int(t.
type()) <<
'\'';
doubleScalar doubleScalarToken_
compound * compoundTokenPtr_
floatScalar floatScalarToken() const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A token holds items read from Istream.
doubleScalar doubleScalarToken() const
virtual bool check(const char *operation) const
Check IOstream status for given operation.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#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.
virtual Istream & read(token &)=0
Return next token from stream.
punctuationToken pToken() const
Istream & operator>>(Istream &, directionInfo &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const compound & compoundToken() const
virtual void write(Ostream &) const =0
floatScalar floatScalarToken_
#define WarningInFunction
Report a warning using Foam::Warning.
punctuationToken punctuationToken_
Ostream & operator<<(Ostream &, const ensightPart &)
const word & wordToken() const
punctuationToken
Standard punctuation tokens.
virtual Ostream & write(const token &)=0
Write next token to stream.
const string & stringToken() const