|
GNE
0.75.0
|
ObjectCreationPacket is a class used by the ObjectBroker to replicate new objects. More...
#include <ObjectCreationPacket.h>
Public Types | |
|
typedef SmartPtr < ObjectCreationPacket > | sptr |
|
typedef WeakPtr < ObjectCreationPacket > | wptr |
Public Types inherited from GNE::ObjectBrokerPacket | |
|
typedef SmartPtr < ObjectBrokerPacket > | sptr |
|
typedef WeakPtr < ObjectBrokerPacket > | wptr |
Public Types inherited from GNE::WrapperPacket | |
| typedef SmartPtr< WrapperPacket > | sptr |
| typedef WeakPtr< WrapperPacket > | wptr |
Public Types inherited from GNE::Packet | |
| typedef SmartPtr< Packet > | sptr |
| typedef WeakPtr< Packet > | wptr |
Public Member Functions | |
| ObjectCreationPacket () | |
| Creates a new instance of this packet suitable only to call readPacket on. | |
| ObjectCreationPacket (int objectId, const Packet &data) | |
| Initializes a new ObjectCreationPacket. | |
Public Member Functions inherited from GNE::ObjectBrokerPacket | |
| 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. | |
Public Member Functions inherited from GNE::WrapperPacket | |
| 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. | |
Public Member Functions inherited from GNE::Packet | |
| 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 = 6 |
| The ID for this type of packet. | |
Additional Inherited Members | |
Protected Member Functions inherited from GNE::ObjectBrokerPacket | |
| ObjectBrokerPacket (int id) | |
| This ctor is suitable for use only in the create method. | |
ObjectCreationPacket is a class used by the ObjectBroker to replicate new objects.
| GNE::ObjectCreationPacket::ObjectCreationPacket | ( | int | objectId, |
| const Packet & | data | ||
| ) |
Initializes a new ObjectCreationPacket.
The given Packet is copied.