Go to the documentation of this file.
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";
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A class for handling words, derived from Foam::string.
const string & stringToken() const
static word validate(const std::string &s, const bool prefix=false)
Istream & operator>>(Istream &, directionInfo &)
A token holds an item read from Istream.
bool isQuotedString() const noexcept
virtual Ostream & write(const char c)
bool isVariable() const noexcept
bool isWord() const noexcept
Ostream & operator<<(Ostream &, const boundaryPatch &p)
InfoProxy< token > info() const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual bool check(const char *operation) const
OBJstream os(runTime.globalPath()/outputName)
const word & wordToken() const
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool good() const noexcept
#define FatalIOErrorInFunction(ios)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...