Go to the documentation of this file.
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);
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()) <<
'\'';
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()) <<
'\'';
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Abstract base class for complex tokens.
A helper class for outputting values to Ostream.
punctuationToken
Standard punctuation tokens.
const word & wordToken() const
Ostream & endl(Ostream &os)
Add newline and flush stream.
A token holds items read from Istream.
floatScalar floatScalarToken_
const compound & compoundToken() const
const string & stringToken() const
tokenType type_
The token type.
void clear()
Clear any allocated storage (word or string)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual Ostream & write(const token &)=0
Write next token to stream.
#define SeriousErrorInFunction
Report an error message using Foam::SeriousError.
floatScalar floatScalarToken() const
virtual void write(Ostream &) const =0
Ostream & operator<<(Ostream &, const edgeMesh &)
punctuationToken pToken() const
virtual bool check(const char *operation) const
Check IOstream status for given operation.
compound * compoundTokenPtr_
Istream & operator>>(Istream &, edgeMesh &)
doubleScalar doubleScalarToken() const
punctuationToken punctuationToken_
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
#define WarningInFunction
Report a warning using Foam::Warning.
doubleScalar doubleScalarToken_
virtual Istream & read(token &)=0
Return next token from stream.