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);
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);
Macros for easy insertion into member function selection tables.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
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 any number of values (e....
Conditional parsing of dictionary entries.
Tuple2< fileName, label > filePos
A functionEntry causes entries to be added/manipulated on the specified dictionary given an input str...
primitiveEntry(const keyType &, Istream &)
Construct from keyword and a Istream.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
defineTypeNameAndDebug(includeFvConstraintEntry, 0)
addToMemberFunctionSelectionTable(functionEntry, includeFvConstraintEntry, execute, dictionaryIstream)
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.