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