GetTMGFunction
Takes a name of a function or functionality as argument and returns a void pointer that is then cast to a function pointer of a given access method.
This mechanism gives you an access to the thermal solver API methods.
void* GetTMGFunction (char* name)
Argument | Data type | Description |
---|---|---|
name | char* | An argument name. |
Example:
typedef void* (*GETTMGFUNCTION_FTYPE)(const char* name)
/ Initialize functions available only in the thermal solver
#ifdef _WIN32
extern "C" __declspec(dllexport) void TMGUserInitialize(void* pGetTMGFunc)
#else
extern "C" void TMGUserInitialize(void* pGetTMGFunc)
#endif
{
// Generic function to get access to solver function
pGetTMGFunction = (GETTMGFUNCTION_FTYPE)pGetTMGFunc;
}