#include <yarp/os/PortReaderBufferBase.h>
Public Member Functions | |
PortReaderBufferBase (unsigned int maxBuffer) | |
virtual | ~PortReaderBufferBase () |
void | setCreator (PortReaderBufferBaseCreator *creator) |
void | setReplier (yarp::os::PortReader &reader) |
void | setPrune (bool flag=true) |
void | setTargetPeriod (double period) |
std::string | getName () const |
unsigned int | getMaxBuffer () |
bool | isClosed () |
void | clear () |
virtual yarp::os::PortReader * | create () |
int | check () |
bool | read (yarp::os::ConnectionReader &connection) override |
Read this object from a network connection. More... | |
yarp::os::PortReader * | readBase (bool &missed, bool cleanup) |
void | interrupt () |
void | attachBase (yarp::os::Port &port) |
virtual bool | acceptObjectBase (yarp::os::PortReader *obj, yarp::os::PortWriter *wrapper) |
Careful! merge with ::read – very similar code Until merge, don't change one without looking at other :-(. More... | |
virtual bool | forgetObjectBase (yarp::os::PortReader *obj, yarp::os::PortWriter *wrapper) |
virtual bool | getEnvelope (PortReader &envelope) |
void * | acquire () |
void | release (void *key) |
Public Member Functions inherited from yarp::os::PortReader | |
virtual | ~PortReader () |
Destructor. More... | |
virtual Type | getReadType () const |
Definition at line 24 of file PortReaderBufferBase.h.
PortReaderBufferBase::PortReaderBufferBase | ( | unsigned int | maxBuffer | ) |
Definition at line 353 of file PortReaderBufferBase.cpp.
|
virtual |
Definition at line 358 of file PortReaderBufferBase.cpp.
|
virtual |
Careful! merge with ::read – very similar code Until merge, don't change one without looking at other :-(.
Definition at line 557 of file PortReaderBufferBase.cpp.
void * PortReaderBufferBase::acquire | ( | ) |
Definition at line 605 of file PortReaderBufferBase.cpp.
void PortReaderBufferBase::attachBase | ( | yarp::os::Port & | port | ) |
Definition at line 546 of file PortReaderBufferBase.cpp.
int PortReaderBufferBase::check | ( | ) |
Definition at line 371 of file PortReaderBufferBase.cpp.
void PortReaderBufferBase::clear | ( | ) |
Definition at line 623 of file PortReaderBufferBase.cpp.
|
virtual |
Definition at line 363 of file PortReaderBufferBase.cpp.
|
virtual |
Definition at line 595 of file PortReaderBufferBase.cpp.
|
virtual |
Definition at line 618 of file PortReaderBufferBase.cpp.
unsigned int PortReaderBufferBase::getMaxBuffer | ( | ) |
Definition at line 536 of file PortReaderBufferBase.cpp.
std::string PortReaderBufferBase::getName | ( | ) | const |
Definition at line 531 of file PortReaderBufferBase.cpp.
void PortReaderBufferBase::interrupt | ( | ) |
Definition at line 380 of file PortReaderBufferBase.cpp.
bool PortReaderBufferBase::isClosed | ( | ) |
Definition at line 541 of file PortReaderBufferBase.cpp.
|
overridevirtual |
Read this object from a network connection.
Override this for your particular class.
reader | an interface to the network connection for reading |
Implements yarp::os::PortReader.
Definition at line 444 of file PortReaderBufferBase.cpp.
PortReader * PortReaderBufferBase::readBase | ( | bool & | missed, |
bool | cleanup | ||
) |
Definition at line 386 of file PortReaderBufferBase.cpp.
void PortReaderBufferBase::release | ( | void * | key | ) |
Definition at line 610 of file PortReaderBufferBase.cpp.
void PortReaderBufferBase::setCreator | ( | PortReaderBufferBaseCreator * | creator | ) |
Definition at line 511 of file PortReaderBufferBase.cpp.
void PortReaderBufferBase::setPrune | ( | bool | flag = true | ) |
Definition at line 521 of file PortReaderBufferBase.cpp.
void PortReaderBufferBase::setReplier | ( | yarp::os::PortReader & | reader | ) |
Definition at line 516 of file PortReaderBufferBase.cpp.
void PortReaderBufferBase::setTargetPeriod | ( | double | period | ) |
Definition at line 526 of file PortReaderBufferBase.cpp.