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" 102 const dictionary&
dict 133 const dictionary&
dict,
137 for (
const entry&
e :
dict)
bool isWord() const noexcept
Token is word-variant (WORD, DIRECTIVE)
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const word & wordToken() const
Return const reference to the word contents.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
bool empty() const noexcept
True if List is empty (ie, size() is zero)
A token holds an item read from Istream.
label readLabel(const char *buf)
Parse entire buffer as a label, skipping leading/trailing whitespace.
const dimensionedScalar e
Elementary charge.
const keyType & keyword() const noexcept
Return keyword.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
bool fatalCheck(const char *operation) const
Check IOstream status for given operation.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
label labelToken() const
Return label value.
bool isLabel() const noexcept
Token is LABEL.
InfoProxy< token > info() const noexcept
Return info proxy, for printing token information to a stream.
static const Foam::entry * resolveLabel(const entry &e, const label val)
A keyword and a list of tokens is an 'entry'.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...