40 (
e.isStream() &&
e.stream().front().isLabel(val))
66 dict.findScoped(varName, keyType::REGEX_RECURSIVE);
76 <<
"Undefined variable " 77 << varName <<
". Valid variables are " <<
dict 84 <<
"Illegal token " << t.
info()
85 <<
" when trying to read label" 96 const dictionary&
dict 127 const dictionary&
dict,
131 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...
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)...
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 ...