#include <ObjectBrokerPacket.h>
Inheritance diagram for GNE::ObjectBrokerPacket:

Public Types | |
| typedef SmartPtr< ObjectBrokerPacket > | sptr |
| typedef WeakPtr< ObjectBrokerPacket > | wptr |
Public Member Functions | |
| 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. | |
Protected Member Functions | |
| ObjectBrokerPacket (int id) | |
| This ctor is suitable for use only in the create method. | |
|
||||||||||||||||
|
Initializes a new ObjectBrokerPacket. The given Packet is copied, if it not NULL. ObjectCreationPacket and ObjectUpdatePacket require a passed packet, but ObjectDeathPacket does not. |
|
|
Sets the object ID for this packet.
|
1.3