Go to the documentation of this file.
53 if (!literal && isPattern())
58 return !compare(text);
71 <<
"Bad token - could not get a word/regex"
92 <<
"Empty word/expression"
101 <<
"Wrong token type - expected word or string, found "
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.
bool isPattern() const
The keyType is treated as a pattern, not as literal string.
const string & stringToken() const
Return const reference to the string contents.
virtual Ostream & writeQuoted(const std::string &str, const bool quoted=true)=0
Write std::string surrounded by quotes.
bool isString() const
Token is STRING, VARIABLE or VERBATIM string.
Istream & operator>>(Istream &, directionInfo &)
A token holds an item read from Istream.
bool good() const
True if token is not UNDEFINED or ERROR.
regExpCxx regExp
Selection of preferred regular expression implementation.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
A class for handling keywords in dictionaries.
InfoProxy< token > info() const
Return info proxy for printing token information to a stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool match(const std::string &text) const
True if the regex matches the entire text.
static const keyType null
An empty keyType.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
bool isWord() const
Token is WORD or DIRECTIVE word.
const word & wordToken() const
Return const reference to the word contents.
void setType(option opt, bool adjust=false)
Change the representation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void setBad()
Set stream to be bad.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
option
Enumeration for the data type and search/match modes (bitmask)
bool match(const std::string &text, bool literal=false) const
Smart match as regular expression or as a string.