Interface for an object that can wrap/attach to to another. More...
#include <yarp/dev/IMultipleWrapper.h>
Public Member Functions | |
virtual | ~IMultipleWrapper () |
Destructor. | |
virtual bool | attachAll (const PolyDriverList &drivers)=0 |
Attach to a list of objects. | |
virtual bool | detachAll ()=0 |
Detach the object (you must have first called attach). | |
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 25 of file IMultipleWrapper.h.
|
virtualdefault |
Destructor.
|
pure virtual |
Attach to a list of objects.
drivers | the polydriver list that you want to attach to. |
Implemented in FrameGrabberCropper, FrameTransformGetMultiplexer, FrameTransformSetMultiplexer, yarp::dev::WrapperSingle, ControlBoardRemapper, RobotDescriptionServer, GenericSensorRosPublisher< ROS_MSG >, GenericSensorRosPublisher< yarp::rosmsg::geometry_msgs::PoseStamped >, GenericSensorRosPublisher< yarp::rosmsg::geometry_msgs::WrenchStamped >, GenericSensorRosPublisher< yarp::rosmsg::sensor_msgs::Imu >, GenericSensorRosPublisher< yarp::rosmsg::sensor_msgs::MagneticField >, GenericSensorRosPublisher< yarp::rosmsg::sensor_msgs::Temperature >, GenericSensor_nws_ros2< ROS_MSG >, GenericSensor_nws_ros2< geometry_msgs::msg::WrenchStamped >, GenericSensor_nws_ros2< sensor_msgs::msg::Imu >, AnalogWrapper, MultipleAnalogSensorsRemapper, MultipleAnalogSensorsServer, and VirtualAnalogWrapper.
|
pure virtual |
Detach the object (you must have first called attach).
Implemented in yarp::dev::WrapperSingle, GenericSensorRosPublisher< ROS_MSG >, GenericSensorRosPublisher< yarp::rosmsg::geometry_msgs::PoseStamped >, GenericSensorRosPublisher< yarp::rosmsg::geometry_msgs::WrenchStamped >, GenericSensorRosPublisher< yarp::rosmsg::sensor_msgs::Imu >, GenericSensorRosPublisher< yarp::rosmsg::sensor_msgs::MagneticField >, GenericSensorRosPublisher< yarp::rosmsg::sensor_msgs::Temperature >, GenericSensor_nws_ros2< ROS_MSG >, GenericSensor_nws_ros2< geometry_msgs::msg::WrenchStamped >, GenericSensor_nws_ros2< sensor_msgs::msg::Imu >, AnalogWrapper, ControlBoardRemapper, FrameGrabberCropper, FrameTransformGetMultiplexer, FrameTransformSetMultiplexer, MultipleAnalogSensorsRemapper, MultipleAnalogSensorsServer, RobotDescriptionServer, and VirtualAnalogWrapper.