|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #ifndef YARP_OS_IMPL_PORTCOREPACKET_H
11 #define YARP_OS_IMPL_PORTCOREPACKET_H
160 #endif // YARP_OS_IMPL_PORTCOREPACKET_H
bool owned
should we memory-manage the content object
const yarp::os::PortWriter * getContent()
const yarp::os::PortWriter * getCallback()
const yarp::os::PortWriter * callback
where to send event notifications
bool ownedCallback
should we memory-manage the callback object
void dec()
Decrement the usage count for this messagae.
virtual void onCompletion() const
This is called when the port has finished all writing operations.
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
void inc()
Increment the usage count for this messagae.
PortCorePacket()
Constructor.
PortCorePacket * prev_
this packet will be in a list of active packets
const yarp::os::PortWriter * content
the object being sent
A single message, potentially being transmitted on multiple connections.
int ct
number of uses of the messagae
void reset()
Delete anything we own and enter a clean state, as if freshly created.
bool completed
has a notification of completion been sent
The main, catch-all namespace for YARP.
PortCorePacket * next_
this packet will be in a list of active packets
void setContent(const yarp::os::PortWriter *writable, bool owned=false, const yarp::os::PortWriter *callback=nullptr, bool ownedCallback=false)
Configure the object being sent and where to send notifications.
virtual ~PortCorePacket()
Destructor.
void complete()
Send a completion notification if we haven't already, and there's somewhere to send it to.