Go to the documentation of this file.
42 if (!toks.empty() && toks[0].isLabel(val))
72 dict.findScoped(varName, keyType::REGEX_RECURSIVE);
82 <<
"Undefined variable "
83 << varName <<
". Valid variables are " <<
dict
90 <<
"Illegal token " << t.
info()
91 <<
" when trying to read label"
A keyword and a list of tokens is an 'entry'.
label labelToken() const
Return label value.
bool isLabel() const noexcept
Token is LABEL.
A class for handling words, derived from Foam::string.
virtual ITstream & stream() const =0
Return token stream, if entry is a primitive entry.
bool fatalCheck(const char *operation) const
Check IOstream status for given operation.
const keyType & keyword() const noexcept
Return keyword.
A token holds an item read from Istream.
bool isWord() const noexcept
Token is word-variant (WORD, DIRECTIVE)
static const Foam::entry * resolveLabel(const entry &e, const label val)
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)....
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
const word & wordToken() const
Return const reference to the word contents.
errorManipArg< error, int > exit(error &err, const int errNo=1)
label readLabel(const char *buf)
Parse entire buffer as a label, skipping leading/trailing whitespace.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const dimensionedScalar e
Elementary charge.
#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,...