OpenRTM  1.0.0
Public Member Functions
RTC::PortActionListenerHolder Class Reference

PortActionListener holder class. More...

#include <ComponentActionListener.h>

List of all members.

Public Member Functions

 PortActionListenerHolder ()
 Constructor.
virtual ~PortActionListenerHolder ()
 Destructor.
void addListener (PortActionListener *listener, bool autoclean)
 Add the listener.
void removeListener (PortActionListener *listener)
 Remove the listener.
void notify (const RTC::PortProfile &pprofile)
 Notify listeners.

Detailed Description

PortActionListener holder class.

This class manages one ore more instances of PortActionListener class.


Constructor & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

void RTC::PortActionListenerHolder::addListener ( PortActionListener listener,
bool  autoclean 
)

Add the listener.

This method adds the listener.

Parameters:
listenerAdded listener
autocleantrue:The listener is deleted at the destructor., false:The listener is not deleted at the destructor.
void RTC::PortActionListenerHolder::notify ( const RTC::PortProfile &  pprofile)

Notify listeners.

This calls the Callback method of the registered listener.

Parameters:
infoConnectorInfo
cdrdataData

Referenced by RTC::RTObject_impl::onAddPort(), and RTC::RTObject_impl::onRemovePort().

Remove the listener.

This method removes the listener.

Parameters:
listenerRemoved listener