Friendly LWM2M client
wpp::ObjOpObserver Class Reference

The ObjOpObserver class is an abstract base class that defines the interface for observing object operations. More...

#include <ObjOpObserver.h>

+ Collaboration diagram for wpp::ObjOpObserver:

Public Member Functions

virtual ~ObjOpObserver ()
 
virtual void instanceCreated (Object &object, ID_T instanceId)
 Notifies the observer immediately after an instance of an object is created by the server. More...
 
virtual void instanceDeleting (Object &object, ID_T instanceId)
 Notifies the observer about the deletion of an instance of an object by the server. More...
 

Detailed Description

The ObjOpObserver class is an abstract base class that defines the interface for observing object operations.

This class provides a set of virtual functions that can be overridden to receive notifications about object operations. It is intended to be subclassed by concrete observer classes that are interested in monitoring the creation and deletion of instances of a specific object.

Definition at line 17 of file ObjOpObserver.h.

Constructor & Destructor Documentation

◆ ~ObjOpObserver()

virtual wpp::ObjOpObserver::~ObjOpObserver ( )
inlinevirtual

Definition at line 19 of file ObjOpObserver.h.

Member Function Documentation

◆ instanceCreated()

virtual void wpp::ObjOpObserver::instanceCreated ( Object object,
ID_T  instanceId 
)
inlinevirtual

Notifies the observer immediately after an instance of an object is created by the server.

This function is called by the server to notify the observer that an instance of the object has been created. The instance is already created at the time of this call.

Parameters
objectThe object for which the instance was created.
instanceIdThe ID of the created instance.

Definition at line 30 of file ObjOpObserver.h.

◆ instanceDeleting()

virtual void wpp::ObjOpObserver::instanceDeleting ( Object object,
ID_T  instanceId 
)
inlinevirtual

Notifies the observer about the deletion of an instance of an object by the server.

This function is called by the server to notify the observer that an instance of the object is being deleted. The instance will be deleted after completing this call.

Parameters
objectThe object from which the instance is being deleted.
instanceIdThe ID of the instance being deleted.

Definition at line 41 of file ObjOpObserver.h.