95 #ifndef functionEntries_codeStream_H 96 #define functionEntries_codeStream_H 106 class dlLibraryTable;
108 namespace functionEntries
151 static constexpr
const char*
const codeTemplateC =
"codeStreamTemplate.C";
A list of keyword definitions, which are a keyword followed by a number of values (eg...
static bool doingMasterOnlyReading(const dictionary &dict)
Helper: access IOobject for master-only-reading functionality.
static streamingFunctionType getFunction(const dictionary &parentDict, const dictionary &codeDict)
Construct, compile, load and return streaming function.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
static string evaluate(const dictionary &parentDict, Istream &is)
Evaluate dynamically compiled code, returning result as string.
void(* streamingFunctionType)(Ostream &, const dictionary &)
Interpreter function type.
static constexpr const char *const codeTemplateC
Name of the C code template to be used.
A keyword and a list of tokens comprise a primitiveEntry. A primitiveEntry can be read...
Dictionary entry that contains C++ OpenFOAM code that is compiled to generate the entry itself...
static bool execute(const dictionary &parentDict, primitiveEntry &entry, Istream &is)
Execute in a primitiveEntry context.
A functionEntry causes entries to be added/manipulated on the specified dictionary given an input str...
A table of dynamically loaded libraries.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual const dictionary & dict() const
This entry is not a dictionary,.
static dlLibraryTable & libs(const dictionary &dict)
Helper function: access to dlLibraryTable of Time.
A keyword and a list of tokens is an 'entry'.
ClassName("codeStream")
Runtime type information.