openDAQ
Open data acquisition platform
RemovablePtr Class Reference

Allows the component to be notified when it is removed. More...

Inherits ObjectPtr< IRemovable >.

Detailed Description

Allows the component to be notified when it is removed.

Public Member Functions

void remove () const
 Notifies the component that it is being removed. More...
 
daq::Bool isRemoved () const
 Returns True if component was removed. More...
 

Member Function Documentation

◆ isRemoved()

daq::Bool isRemoved ( ) const
inline

Returns True if component was removed.

Returns
True if component was removed; otherwise False.

◆ remove()

void remove ( ) const
inline

Notifies the component that it is being removed.

Call remove on the component to mark it as removed. It's up to the implementation to define what is does on the act of removal. Basic implementation of Component will switch it to inactive state and it cannot be activated again.