34 namespace functionEntries
58 const dictionary& contextDict,
62 return codeStream::codeString
65 "CODE_BLOCK_DICT_FUNCTION",
73 Foam::functionEntries::codeDict::codeDictFunctionType
74 Foam::functionEntries::codeDict::getFunction
76 const dictionary& contextDict,
77 const dictionary& codeDict
92 const codeDictFunctionType
function =
93 reinterpret_cast<codeDictFunctionType
>
103 ) <<
"Failed looking up symbol " << codeName
111 bool Foam::functionEntries::codeDict::resultStream
113 dictionary& contextDict,
119 Info<<
"Using " <<
typeName <<
" at line " << is.lineNumber()
120 <<
" in file " << contextDict.name() <<
endl;
125 const dictionary codeDict(
typeName, contextDict, is);
128 const codeDictFunctionType
function = getFunction(contextDict, codeDict);
131 (*function)(contextDict, is);
141 const label lineNumber,
158 return resultStream(contextDict, is);
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
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.
Compiles and executes C++ OpenFOAM code string expressions.
static const word codeOptions
Name of the code options file to be used.
static const wordList compileFiles
Name of the C code template to be used.
virtual bool execute(dictionary &contextDict, Istream &)
Expand the functionEntry into the contextDict.
Compiles and executes C++ OpenFOAM code string expressions.
friend class codeDict
Declare friendship with the calcEntry class.
A functionEntry causes entries to be added/manipulated on the specified dictionary given an input str...
A class for handling character strings derived from std::string.
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
defineFunctionTypeNameAndDebug(includeFvConstraintEntry, 0)
addToRunTimeSelectionTable(functionEntry, includeFvConstraintEntry, dictionary)
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void * dlSym(void *handle, const std::string &symbol)
Lookup a symbol in a dlopened library using handle to library.