60 if (val.empty() || val.length() != str.length())
63 <<
"Empty word or non-word characters "
75 <<
"Wrong token type - expected word, found "
81 <<
"Bad token - could not get word";
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.
void setBad()
Set stream state to be 'bad'.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual Ostream & write(const char c)
Write character.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void validate()
Validate the turbulence fields after construction.
A token holds an item read from Istream.
const string & stringToken() const
Return const reference to the string contents.
bool good() const noexcept
True if token is not UNDEFINED or ERROR.
InfoProxy< token > info() const
Return info proxy for printing token information to a stream.
bool isQuotedString() const noexcept
Token is (quoted) STRING (string variant)
bool isVariable() const noexcept
Token is VARIABLE (string variant)
const word & wordToken() const
Return const reference to the word contents.
bool isWord() const noexcept
Token is word-variant (WORD, DIRECTIVE)
A class for handling words, derived from Foam::string.
word()=default
Default construct.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Istream & operator>>(Istream &, directionInfo &)
errorManipArg< error, int > exit(error &err, const int errNo=1)