Interface for an object that can wrap/attach to to another. More...
#include <yarp/dev/IMultipleWrapper.h>
Public Member Functions | |
virtual | ~IMultipleWrapper () |
Destructor. More... | |
virtual bool | attachAll (const PolyDriverList &p)=0 |
Attach to a list of objects. More... | |
virtual bool | detachAll ()=0 |
Detach the object (you must have first called attach). More... | |
Interface for an object that can wrap/attach to to another.
This is useful for example when an object refers internally to another device, but you want to decouple the creation of the two objects. In this case you first creates the two objects separately then you can attach one to the other. This class is similar to IWrapper, but allows attaching to more than one object by subsequent calls to attach.
Definition at line 29 of file IMultipleWrapper.h.
|
virtualdefault |
Destructor.
|
pure virtual |
Attach to a list of objects.
p | the polydriver list that you want to attach to. |
Implemented in VirtualAnalogWrapper, ServerInertial, RGBDSensorWrapper, Rangefinder2DWrapper, MultipleAnalogSensorsServer, GenericSensorRosPublisher< ROS_MSG >, GenericSensorRosPublisher< yarp::rosmsg::sensor_msgs::Temperature >, GenericSensorRosPublisher< yarp::rosmsg::geometry_msgs::WrenchStamped >, GenericSensorRosPublisher< yarp::rosmsg::geometry_msgs::PoseStamped >, GenericSensorRosPublisher< yarp::rosmsg::sensor_msgs::MagneticField >, GenericSensorRosPublisher< yarp::rosmsg::sensor_msgs::Imu >, MultipleAnalogSensorsRemapper, JoypadControlServer, BatteryWrapper, AudioRecorderWrapper, AudioPlayerWrapper, AnalogWrapper, RobotDescriptionServer, navigation2DServer, Localization2DServer, ControlBoardWrapper, ControlBoardRemapper, and ServerGrabber.
|
pure virtual |
Detach the object (you must have first called attach).
Implemented in VirtualAnalogWrapper, ServerInertial, ServerGrabber, RobotDescriptionServer, RGBDSensorWrapper, Rangefinder2DWrapper, navigation2DServer, MultipleAnalogSensorsServer, GenericSensorRosPublisher< ROS_MSG >, GenericSensorRosPublisher< yarp::rosmsg::sensor_msgs::Temperature >, GenericSensorRosPublisher< yarp::rosmsg::geometry_msgs::WrenchStamped >, GenericSensorRosPublisher< yarp::rosmsg::geometry_msgs::PoseStamped >, GenericSensorRosPublisher< yarp::rosmsg::sensor_msgs::MagneticField >, GenericSensorRosPublisher< yarp::rosmsg::sensor_msgs::Imu >, MultipleAnalogSensorsRemapper, Localization2DServer, JoypadControlServer, ControlBoardWrapper, ControlBoardRemapper, BatteryWrapper, AudioRecorderWrapper, AudioPlayerWrapper, and AnalogWrapper.