34 namespace functionEntries
51 bool Foam::functionEntries::ifEntry::execute
53 DynamicList<filePos>& stack,
54 dictionary& parentDict,
58 const label nNested = stack.size();
60 stack.append(filePos(is.name(), is.lineNumber()));
64 dynamic_cast<ISstream&
>(is).getLine(line);
66 IStringStream lineStream(line);
67 const primitiveEntry
e(
"ifEntry", parentDict, lineStream);
68 const Switch doIf(
e.stream());
74 bool ok = ifeqEntry::execute(doIf, stack, parentDict, is);
76 if (stack.size() != nNested)
79 <<
"Did not find matching #endif for condition starting" 80 <<
" at line " << stack.last().second()
90 bool Foam::functionEntries::ifEntry::execute
97 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)...
addToMemberFunctionSelectionTable(functionEntry, calcEntry, execute, dictionaryIstream)
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Macros for easy insertion into member function selection tables.
const doubleScalar e
Elementary charge.
defineTypeNameAndDebug(calcEntry, 0)