A creator for readers. More...
#include <yarp/os/PortReaderCreator.h>
Public Member Functions | |
virtual | ~PortReaderCreator () |
Destructor. More... | |
virtual PortReader * | create () const =0 |
Factory for PortReader objects. More... | |
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 33 of file PortReaderCreator.h.
|
virtualdefault |
Destructor.
|
pure virtual |
Factory for PortReader objects.
Implemented in yarp::name::NameServerManager.