13#ifndef ML_FIELD_SENSOR_H
14#define ML_FIELD_SENSOR_H
88 void attachFieldInternal(
Field* field);
91 Field* _attachedField;
virtual ~FieldSensor()
Destructor: Disconnects field sensor from the connected field.
FieldSensor(MLSensorCB *callbackFunction, void *userData)
void attachField(Field *field)
void callback(Strength notificationStrength=CHANGED)
Strength getNotificationStrength() const
Strength
Enumeration type describing the strength of notifications.
@ CHANGED
Subject (i.e., the field) is notified and/or changed.
@ NO_NOTIFICATION
Default when sensor is asked outside a notification.
@ NO_CHANGE
Subject (i.e., the field) is notified but not changed.
Field * getField() const
Returns the field connected to the field sensor.
#define MLEXPORT
Code it as import symbol if compiled elsewhere.
void MLSensorCB(void *usrData, void *sensor)