59 const std::string& str,
63 if (literalMatch || !isPattern())
66 return (str == *
this);
101 <<
"Empty pattern string"
131 <<
"wrong token type - expected word or string, found "
139 is.
check(
"Istream& operator>>(Istream&, keyType&)");
148 os.
check(
"Ostream& operator<<(Ostream&, const keyType&)");
158 static const unsigned short entryIndentation_ = 16;
163 label nSpaces = entryIndentation_ -
label(kw.size());
171 nSpaces =
max(nSpaces, 1);
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 to be bad.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void indent()=0
Add indentation characters.
virtual Ostream & write(const char)=0
Write character.
virtual Ostream & writeQuoted(const std::string &, const bool quoted=true)=0
Write std::string surrounded by quotes.
A class for handling keywords in dictionaries.
bool isPattern() const
Should be treated as a match rather than a literal string.
static const keyType null
An empty keyType.
void operator=(const keyType &)
Assignment operator.
bool isUndefined() const
Return true if the type has not been defined.
bool match(const std::string &, bool literalMatch=false) const
Smart match as regular expression or as a string.
Wrapper around POSIX extended regular expressions.
bool match(const std::string &) const
Return true if it matches the entire string.
A token holds items read from Istream.
const variable & variableToken() const
const functionName & functionNameToken() const
const string & stringToken() const
InfoProxy< token > info() const
Return info proxy.
bool isFunctionName() const
const word & wordToken() const
A variable is a word with support for additional characters, in particular '$' and '/'.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Istream & operator>>(Istream &, pistonPointEdgeData &)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
Ostream & writeKeyword(Foam::Ostream &os, const keyType &kw)
Write the keyword to the Ostream with the current level of indentation.