49 val = tok.wordToken();
51 else if (tok.isQuotedString() || tok.isVariable())
56 const auto& str = tok.stringToken();
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";
static word validate(const std::string &s, const bool prefix=false)
Construct validated word (no invalid characters).
virtual Ostream & write(const char c)
Write character.
word()=default
Default construct.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Istream & operator>>(Istream &, directionInfo &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...