public class FMICallbackFunctions
extends com.sun.jna.Structure
The C language interface to Functional Mock-up Unit (FMU) files includes a fmiCallbackFunctions struct whose elements are callbacks to methods are called to log status messages, allocate memory, free memory and to notify the system that the step is finished. This class encapsulates those callbacks.
For details about how Callbacks work in JNA, see http://twall.github.com/jna/3.4.0/javadoc/overview-summary.html#callbacks.
This file is based on a file that was autogenerated by
JNAerator,
a tool
written by Olivier Chafik that
uses
a few opensource projects..
Red (cxh) |
Red (cxh) |
Modifier and Type | Class and Description |
---|---|
static class |
FMICallbackFunctions.ByValue
A class that contains references to the callback functions.
|
Modifier and Type | Field and Description |
---|---|
FMILibrary.FMICallbackAllocateMemory |
allocateMemory
C type : fmiCallbackAllocateMemory.
|
FMILibrary.FMICallbackFreeMemory |
freeMemory
C type: fmiCallbackFreeMemory.
|
FMILibrary.FMICallbackLogger |
logger
C type: fmiCallbackLogger.
|
FMILibrary.FMIStepFinished |
stepFinished
C type: fiStepFinished.
|
Constructor and Description |
---|
FMICallbackFunctions()
Instantiate a Java representation of the C structure that
contains the FMI call backs.
|
FMICallbackFunctions(FMILibrary.FMICallbackLogger logger,
FMILibrary.FMICallbackAllocateMemory allocateMemory,
FMILibrary.FMICallbackFreeMemory freeMemory,
FMILibrary.FMIStepFinished stepFinished)
Instantiate a Java representation of the C structure that
contains the FMI call backs.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List |
getFieldOrder()
Return the field names in the proper order.
|
protected void |
initFieldOrder()
Deprecated.
As of jna-3.5.0, use getFieldOrder() instead.
|
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, clear, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
public FMILibrary.FMICallbackLogger logger
public FMILibrary.FMICallbackAllocateMemory allocateMemory
public FMILibrary.FMICallbackFreeMemory freeMemory
public FMILibrary.FMIStepFinished stepFinished
public FMICallbackFunctions()
public FMICallbackFunctions(FMILibrary.FMICallbackLogger logger, FMILibrary.FMICallbackAllocateMemory allocateMemory, FMILibrary.FMICallbackFreeMemory freeMemory, FMILibrary.FMIStepFinished stepFinished)
logger
- The method called to log a status message
(C type: fmiCallbackLogger).allocateMemory
- The method called to allocate cleared memory
(C type: fmiCallbackAllocateMemoryfreeMemory
- The method called to free allocated memory
(C type: fmiCallbackFreeMemory)stepFinished
- The method called when the step is finished.
(C type: FmiStepFinished)protected java.util.List getFieldOrder()
This is new in jna-3.5.0.
getFieldOrder
in class com.sun.jna.Structure
@Deprecated protected void initFieldOrder()