34 namespace functionEntries
46 const label lineNumber,
73 <<
" can only be used within #codeBlock...#endCodeBlock"
91 fileName expandedFname(fileNames[i]);
98 "#include \"" + expandedFname +
'"' +
'\n';
101 codeDict.add(
"codeInclude", codeInclude);
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A class for handling file names.
Compiles and executes C++ OpenFOAM code string expressions.
Specify an include file or list of files for #calc within #codeBlock.
virtual bool execute(dictionary &parentDict, Istream &)
Execute the functionEntry in a sub-dict context.
static void addCodeInclude(const List< fileName > &fileNames, const dictionary &contextDict, dictionary &codeDict)
Add the codeInclude entry to codeDict.
codeIncludeEntry(const label lineNumber, const dictionary &parentDict, Istream &is)
Construct from line number, dictionary and Istream.
A functionEntry causes entries to be added/manipulated on the specified dictionary given an input str...
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
A class for handling verbatimStrings, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
defineFunctionTypeNameAndDebug(includeFvConstraintEntry, 0)
addToRunTimeSelectionTable(functionEntry, includeFvConstraintEntry, dictionary)
string & inplaceExpandEntry(string &s, const dictionary &dict, const bool allowEnvVars, const bool allowEmpty, const char sigil='$')
Inplace expand occurrences of variables according to the dictionary.
errorManipArg< error, int > exit(error &err, const int errNo=1)
List< T > readList(Istream &)
Read a bracket-delimited list, or handle a single value as list of size 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.