YARP  2.3.68+272-20170522.1+git50f0ae7
Yet Another Robot Platform
yarp::os::PortReaderCreator Class Referenceabstract

A creator for readers. More...

#include <yarp/os/PortReaderCreator.h>

+ Inheritance diagram for yarp::os::PortReaderCreator:

Public Member Functions

virtual ~PortReaderCreator ()
 Destructor. More...
virtual PortReadercreate ()=0
 Factory for PortReader objects. More...

Detailed Description

A creator for readers.

This is used when you want a Port to create a different reader for every input connection it receives. This is a very quick way to make a multi-threaded server that keeps track of which input is which. Inherit from this class, defining the PortReaderCreator::create method. Then pass an instance to Port::setReaderCreator. The create() method will be called every time the Port receives a new connection, and all input coming in via that connection will be channeled appropriately.

Definition at line 32 of file PortReaderCreator.h.

Constructor & Destructor Documentation

◆ ~PortReaderCreator()

yarp::os::PortReaderCreator::~PortReaderCreator ( )


Definition at line 10 of file PortReaderCreator.cpp.

Member Function Documentation

◆ create()

virtual PortReader* yarp::os::PortReaderCreator::create ( )
pure virtual

Factory for PortReader objects.

A new PortReader object – used to read from a connection to a Port

Implemented in yarp::name::NameServerManager.

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