YARP  2.3.70.1
Yet Another Robot Platform
yarp::os::PortReader Class Referenceabstract

Interface implemented by all objects that can read themselves from the network, such as Bottle objects. More...

#include <yarp/os/PortReader.h>

+ Inheritance diagram for yarp::os::PortReader:

Public Member Functions

virtual ~PortReader ()
 Destructor. More...
 
virtual bool read (ConnectionReader &reader)=0
 Read this object from a network connection. More...
 
virtual Type getReadType ()
 

Detailed Description

Interface implemented by all objects that can read themselves from the network, such as Bottle objects.

See also
Port, PortWriter
Examples:
port_power/ex0300_port_callback.cpp, port_power/ex0402_port_callback_reply.cpp, and port_power/ex0403_bufferedport_callback_reply.cpp.

Definition at line 25 of file PortReader.h.

Constructor & Destructor Documentation

◆ ~PortReader()

yarp::os::PortReader::~PortReader ( )
virtual

Destructor.

Definition at line 10 of file PortReader.cpp.

Member Function Documentation

◆ getReadType()

virtual Type yarp::os::PortReader::getReadType ( )
inlinevirtual

Reimplemented in yarp::sig::Image.

Definition at line 41 of file PortReader.h.

◆ read()

virtual bool yarp::os::PortReader::read ( ConnectionReader reader)
pure virtual

Read this object from a network connection.

Override this for your particular class.

Parameters
readeran interface to the network connection for reading
Returns
true iff the object is successfully read

Implemented in jointData::Editor, yarp::os::impl::BottleImpl, yarp::sig::Vector, yarp::os::Property, sensor_msgs_CameraInfo, visualization_msgs_Marker, yarp::sig::Matrix, yarp::os::impl::PortCore, yarp::os::Bottle, yarp::sig::Image, yarp::dev::MapGrid2D, yarp::os::Value, yarp::os::Node::Helper, sensor_msgs_LaserScan, yarp::dev::DeviceResponder, yarp::dev::ServerInertial, sensor_msgs_Imu, yarp::dev::ServerSoundGrabber, sensor_msgs_JointState, sensor_msgs_Image, yarp::os::ManagedBytes, sensor_msgs_PointCloud2, yarp::dev::FrameTransformClient, yarp::math::Quaternion, sensor_msgs_RegionOfInterest, nav_msgs_MapMetaData, PingSampler, jointData, yarp::sig::Sound, nav_msgs_OccupancyGrid, geometry_msgs_Quaternion, std_msgs_ColorRGBA, std_msgs_Header, yarp::os::Stamp, geometry_msgs_TransformStamped, sensor_msgs_PointField, yarp::os::impl::Storable, geometry_msgs_Vector3, geometry_msgs_Point, yarp::os::impl::PortCoreAdapter, yarp::dev::LocationsServer, yarp::os::PortablePair< HEAD, BODY >, geometry_msgs_Transform, yarp::dev::RobotDescriptionServer, geometry_msgs_Wrench, geometry_msgs_WrenchStamped, TickDuration, visualization_msgs_MarkerArray, yarp::math::Vec2D< T >, geometry_msgs_Pose, tf_tfMessage, tf2_msgs_TFMessage, RosSlave, JoyData, TickTime, yarp::math::Vec2D< T >, yarp::sig::VectorBase, ModuleHelper, yarp::os::idl::UnwrappedView< T >, yarp::os::impl::PortCommand, yarp::name::NameServerConnectionHandler, yarp::os::BinPortable< T >, yarp::os::SystemInfoSerializer, RFModuleRespondHandler, yarp::os::NetworkClock, yarp::math::Vec2D< T >, yarp::os::Portable, and yarp::os::idl::Unwrapped< T >.


The documentation for this class was generated from the following files: