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);
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()) <<
'\'';
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()) <<
'\'';
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
virtual bool check(const char *operation) const
Check IOstream status for given operation.
A helper class for outputting values to Ostream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual Istream & read(token &)=0
Return next token from stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Abstract base class for complex tokens.
virtual void write(Ostream &) const =0
A token holds items read from Istream.
longDoubleScalar longDoubleScalarToken() const
const variable & variableToken() const
punctuationToken punctuationToken_
verbatimString * verbatimStringTokenPtr_
compound * compoundTokenPtr_
functionName * functionNameTokenPtr_
floatScalar floatScalarToken_
const functionName & functionNameToken() const
variable * variableTokenPtr_
floatScalar floatScalarToken() const
punctuationToken
Standard punctuation tokens.
const string & stringToken() const
punctuationToken pToken() const
const compound & compoundToken() const
doubleScalar doubleScalarToken() const
doubleScalar doubleScalarToken_
const word & wordToken() const
const verbatimString & verbatimStringToken() const
longDoubleScalar * longDoubleScalarTokenPtr_
#define WarningInFunction
Report a warning using Foam::Warning.
#define SeriousErrorInFunction
Report an error message using Foam::SeriousError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Istream & operator>>(Istream &, directionInfo &)
Ostream & operator<<(Ostream &, const ensightPart &)