21template<
int MAX_INT_LISTENER_COUNT>
31 void *
args[MAX_INT_LISTENER_COUNT];
52template<
int MAX_INT_LISTENER_COUNT>
57template<
int MAX_INT_LISTENER_COUNT>
59 currentListenersCount = 0;
60 memset(&args, 0,
sizeof(args));
61 memset(&callbacks, 0,
sizeof(callbacks));
64template<
int MAX_INT_LISTENER_COUNT>
67 int index = currentListenersCount++;
68 callbacks[index] = handler;
72template<
int MAX_INT_LISTENER_COUNT>
77template<
int MAX_INT_LISTENER_COUNT>
83template<
int MAX_INT_LISTENER_COUNT>
85 for (
int i = 0; i < currentListenersCount; i++) {
92template<
int MAX_INT_LISTENER_COUNT>
96 void *arg = array->
args[i];
101template<
int MAX_INT_LISTENER_COUNT>
109template<
int MAX_INT_LISTENER_COUNT>
117template<
int MAX_INT_LISTENER_COUNT>
void * args[MAX_INT_LISTENER_COUNT]
void registerCallback(VoidInt handler, void *arg)
int currentListenersCount
void invokeJustArgCallbacks() const
VoidInt callbacks[MAX_INT_LISTENER_COUNT]
void(* VoidIntInt)(int, int)
void(* ArgIntListener)(void *arg, int value)
void(* IntIntVoidListener)(int value1, int value2, void *arg)
void clearCallbacks(IntListenerArray< MAX_INT_LISTENER_COUNT > *array)
void invokeArgIntCallbacks(IntListenerArray< MAX_INT_LISTENER_COUNT > *array, int value)
void invokeIntIntCallbacks(IntListenerArray< MAX_INT_LISTENER_COUNT > *array, int value, int value2)
void(* ArgListener)(void *arg)
void invokeCallbacks(IntListenerArray< MAX_INT_LISTENER_COUNT > *array, int value)
void invokeIntIntVoidCallbacks(IntListenerArray< MAX_INT_LISTENER_COUNT > *array, int value, int value2)
value1("SENT ch0 value1", SensorCategory.SENSOR_INPUTS, FieldType.INT16, 1974, 1.0, 0.0, 4095.0, "RAW")
static CanTsListener listener