WSF
WsfXIO_Packet.hpp File Reference
#include "wsf_export.h"
#include "GenUniqueId.hpp"
#include "PakPacket.hpp"
#include "xio/WsfXIO_Defines.hpp"
Include dependency graph for WsfXIO_Packet.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  WsfXIO_Packet
 Base class for XIO Packets. Provides the header information. More...

Variables

static const int cXIO_WSF_LAST_PACKET_ID = 74
static const int cXIO_WSF_EXTENDED_FIRST_PACKET_ID = 75
static const int cXIO_WSF_EXTENDED_LAST_PACKET_ID = 99
static const int cXIO_APP_1_FIRST_PACKET_ID = 100
static const int cXIO_APP_1_LAST_PACKET_ID = 114
static const int cXIO_APP_2_FIRST_PACKET_ID = 200
static const int cXIO_APP_2_LAST_PACKET_ID = 349
static const int cXIO_WSF_LAST_TYPE_ID = 10
 Class type registry for polymorphic serialization.
static const int cXIO_WSF_SIM_LAST_TYPE_ID = 20
static const int cXIO_WSF_EXTENDED_FIRST_TYPE_ID = 21
static const int cXIO_WSF_EXTENDED_LAST_TYPE_ID = 30

Macros to simplify defining packets.

#define XIO_DEFINE_PACKET_CTOR(PACKET_NAME__, BASE_TYPE__, PACKET_ID__)
#define XIO_DEFINE_PACKET_SERIALIZE()
#define XIO_DEFINE_PACKET(PACKET_NAME__, BASE_TYPE__, PACKET_ID__)

Macro Definition Documentation

◆ XIO_DEFINE_PACKET

#define XIO_DEFINE_PACKET ( PACKET_NAME__,
BASE_TYPE__,
PACKET_ID__ )
Value:
XIO_DEFINE_PACKET_CTOR(PACKET_NAME__, BASE_TYPE__, PACKET_ID__) {} \
XIO_DEFINE_PACKET_SERIALIZE()
#define XIO_DEFINE_PACKET_CTOR(PACKET_NAME__, BASE_TYPE__, PACKET_ID__)
Definition WsfXIO_Packet.hpp:86

◆ XIO_DEFINE_PACKET_CTOR

#define XIO_DEFINE_PACKET_CTOR ( PACKET_NAME__,
BASE_TYPE__,
PACKET_ID__ )
Value:
typedef BASE_TYPE__ BaseType; \
static const int cPACKET_ID = PACKET_ID__; \
PACKET_NAME__(int aPacketId = cPACKET_ID) \
: BASE_TYPE__(aPacketId)

◆ XIO_DEFINE_PACKET_SERIALIZE

#define XIO_DEFINE_PACKET_SERIALIZE ( )
Value:
template<typename T> \
void Serialize(T& aBuff) \
{ \
BaseType::Serialize(aBuff); \
DoSerialize(aBuff); \
} \
template<typename T> \
void DoSerialize(T& aBuff)
void Serialize(BUFF &aBuff, UtVec3d &aVec3)
Definition WsfXIO_SerializeTypes.hpp:217

Variable Documentation

◆ cXIO_APP_1_FIRST_PACKET_ID

const int cXIO_APP_1_FIRST_PACKET_ID = 100
static

◆ cXIO_APP_1_LAST_PACKET_ID

const int cXIO_APP_1_LAST_PACKET_ID = 114
static

◆ cXIO_APP_2_FIRST_PACKET_ID

const int cXIO_APP_2_FIRST_PACKET_ID = 200
static

◆ cXIO_APP_2_LAST_PACKET_ID

const int cXIO_APP_2_LAST_PACKET_ID = 349
static

◆ cXIO_WSF_EXTENDED_FIRST_PACKET_ID

const int cXIO_WSF_EXTENDED_FIRST_PACKET_ID = 75
static

◆ cXIO_WSF_EXTENDED_FIRST_TYPE_ID

const int cXIO_WSF_EXTENDED_FIRST_TYPE_ID = 21
static

◆ cXIO_WSF_EXTENDED_LAST_PACKET_ID

const int cXIO_WSF_EXTENDED_LAST_PACKET_ID = 99
static

◆ cXIO_WSF_EXTENDED_LAST_TYPE_ID

const int cXIO_WSF_EXTENDED_LAST_TYPE_ID = 30
static

◆ cXIO_WSF_LAST_PACKET_ID

const int cXIO_WSF_LAST_PACKET_ID = 74
static

◆ cXIO_WSF_LAST_TYPE_ID

const int cXIO_WSF_LAST_TYPE_ID = 10
static

Class type registry for polymorphic serialization.

Referenced by WsfXIO_PacketRegistry::RegisterClasses(), and WsfXIO_SimPacketRegistry::RegisterClasses().

◆ cXIO_WSF_SIM_LAST_TYPE_ID

const int cXIO_WSF_SIM_LAST_TYPE_ID = 20
static
Copyrights Multiple, All Rights Reserved