95#ifndef functionEntries_codeStream_H
96#define functionEntries_codeStream_H
151 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.
entry(const keyType &keyword)
Construct from keyword.
Uses dynamic compilation to provide calculating functionality for entering dictionary entries.
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.
functionEntry(const functionEntry &)=delete
No copy construct.
primitiveEntry(const keyType &key)
Construct from keyword and no tokens.
virtual const dictionary & dict() const
This entry is not a dictionary, calling this function generates a FatalError.
#define ClassName(TypeNameString)
Add typeName information from argument TypeNameString to a class.
const dimensionedScalar c
Speed of light in a vacuum.
Namespace for containing a functionEntry.
mode_t mode(const fileName &name, const bool followLink=true)
Return the file mode, normally following symbolic links.