59 const std::string& str,
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);
const variable & variableToken() const
A class for handling keywords in dictionaries.
const functionName & functionNameToken() const
virtual Ostream & write(const char)=0
Write character.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool match(const std::string &) const
Return true if it matches the entire string.
Ostream & writeKeyword(Foam::Ostream &os, const keyType &kw)
Write the keyword to the Ostream with the current level of indentation.
Wrapper around POSIX extended regular expressions.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
InfoProxy< token > info() const
Return info proxy.
const word & wordToken() const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A token holds items read from Istream.
bool match(const std::string &, bool literalMatch=false) const
Smart match as regular expression or as a string.
virtual Ostream & writeQuoted(const std::string &, const bool quoted=true)=0
Write std::string surrounded by quotes.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
void setBad()
Set stream to be bad.
Istream & operator>>(Istream &, directionInfo &)
bool isUndefined() const
Return true if the type has not been defined.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const string & stringToken() const
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
void operator=(const keyType &)
Assignment operator.
Ostream & operator<<(Ostream &, const ensightPart &)
bool isFunctionName() const
static const keyType null
An empty keyType.
A variable is a word with support for additional characters, in particular '$' and '/'...
virtual void indent()=0
Add indentation characters.
bool isPattern() const
Should be treated as a match rather than a literal string.