GNE
0.75.0
|
ObjectDeathPacket is a class used by the ObjectBroker to signify when an object is being removed from its control (usually because it is "dying"). More...
#include <ObjectDeathPacket.h>
Public Types | |
typedef SmartPtr < ObjectDeathPacket > | sptr |
typedef WeakPtr < ObjectDeathPacket > | wptr |
![]() | |
typedef SmartPtr < ObjectBrokerPacket > | sptr |
typedef WeakPtr < ObjectBrokerPacket > | wptr |
![]() | |
typedef SmartPtr< WrapperPacket > | sptr |
typedef WeakPtr< WrapperPacket > | wptr |
![]() | |
typedef SmartPtr< Packet > | sptr |
typedef WeakPtr< Packet > | wptr |
Public Member Functions | |
ObjectDeathPacket () | |
Creates a new instance of this packet suitable only to call readPacket on. | |
ObjectDeathPacket (int objectId, const Packet *data) | |
Initializes a new ObjectDeathPacket. | |
![]() | |
ObjectBrokerPacket (int packetId, int objectId, const Packet *data) | |
Initializes a new ObjectBrokerPacket. | |
ObjectBrokerPacket (const ObjectBrokerPacket &o) | |
Initializes a new ObjectBrokerPacket from the given one. | |
int | getObjectId () const |
Returns the object ID. | |
void | setObjectId (int newId) |
Sets the object ID for this packet. | |
virtual int | getSize () const |
Returns the current size of this packet in bytes. | |
virtual void | writePacket (Buffer &raw) const |
Writes the packet to the given Buffer. | |
virtual void | readPacket (Buffer &raw) |
Reads this packet from the given Buffer. | |
![]() | |
const Packet * | getData () const |
Returns the encapsulated data in this WrapperPacket. | |
Packet * | getData () |
Returns the encapsulated data in this WrapperPacket. | |
void | setData (const Packet *packet) |
Replaces the given packet with the current packet as this WrapperPacket's data. | |
WrapperPacket & | operator= (const WrapperPacket &rhs) |
Copies the given WrapperPacket into this one. | |
![]() | |
Packet * | makeClone () const |
Returns a newly allocated exact copy of this packet, using the PacketParser::clonePacket function. | |
int | getType () const |
Returns the type of this instance. |
Static Public Attributes | |
static const int | ID = 8 |
The ID for this type of packet. |
Additional Inherited Members | |
![]() | |
ObjectBrokerPacket (int id) | |
This ctor is suitable for use only in the create method. |
ObjectDeathPacket is a class used by the ObjectBroker to signify when an object is being removed from its control (usually because it is "dying").
GNE::ObjectDeathPacket::ObjectDeathPacket | ( | int | objectId, |
const Packet * | data | ||
) |
Initializes a new ObjectDeathPacket.
The given Packet is copied.