34 namespace functionEntries
52 bool Foam::functionEntries::ifEntry::execute
54 DynamicList<filePos>& stack,
55 dictionary& parentDict,
59 const label nNested = stack.size();
61 stack.append(filePos(is.name(), is.lineNumber()));
65 dynamic_cast<ISstream&
>(is).getLine(line);
67 IStringStream lineStream(line);
68 const primitiveEntry
e(
"ifEntry", parentDict, lineStream);
69 const Switch doIf(
e.stream());
77 if (stack.size() != nNested)
80 <<
"Did not find matching #endif for condition starting" 81 <<
" at line " << stack.last().second()
91 bool Foam::functionEntries::ifEntry::execute
98 return execute(stack, parentDict, is);
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
addNamedToMemberFunctionSelectionTable(functionEntry, ifEntry, execute, dictionaryIstream, if)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Macros for easy insertion into member function selection tables.
const doubleScalar e
Elementary charge.
static bool execute(const bool equal, DynamicList< filePos > &stack, dictionary &parentDict, Istream &is)
Main driver: depending on 'equal' starts evaluating or.
defineTypeNameAndDebug(calcEntry, 0)