|
Friendly LWM2M client
|
The ObjSubject class represents a subject that notifies observers about object operations and actions. More...
#include <ObjSubject.h>
Inheritance diagram for wpp::ObjSubject:
Collaboration diagram for wpp::ObjSubject:Public Member Functions | |
| void | opSubscribe (ObjOpObserver *observer) |
| Subscribes an observer to receive notifications about object operations. More... | |
| void | opUnsubscribe (ObjOpObserver *observer) |
| Unsubscribes an observer from receiving notifications about object operations. More... | |
Protected Member Functions | |
| void | operationNotify (Object &obj, ID_T instanceId, ItemOp::TYPE type) |
| Notifies observers about object operations. More... | |
The ObjSubject class represents a subject that notifies observers about object operations and actions.
This class provides functionality for subscribing and unsubscribing observers to receive notifications about the creation and deletion of object instances initiated by the server, as well as required restore actions for objects.
The ObjSubject class is designed to be inherited by other classes that require observer functionality.
Definition at line 21 of file ObjSubject.h.
|
inlineprotected |
Notifies observers about object operations.
This function is called to notify the subscribed observers about the creation and deletion of object instances.
| obj | The Object instance that the operation is performed on. |
| instanceId | The ID of the object instance. |
| type | The type of operation (CREATE or DELETE). |
Definition at line 53 of file ObjSubject.h.
Here is the caller graph for this function:
|
inline |
Subscribes an observer to receive notifications about object operations.
| observer | A pointer to the ObjOpObserver object to be subscribed. |
Definition at line 28 of file ObjSubject.h.
|
inline |
Unsubscribes an observer from receiving notifications about object operations.
| observer | A pointer to the ObjOpObserver object to be unsubscribed. |
Definition at line 39 of file ObjSubject.h.