VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
eventReportPdu.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2013 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
9 
10 #pragma once
11 
12 #if DtDIS
13 
14 #include "hostStructs.h"
15 #include "pduWithData.h"
16 
18 
21 
23 typedef void (*DtEventReportPduCb)(DtEventReportPdu *pdu, void *usr);
24 
29 {
30 public:
31 
32  enum { PduStaticSize=40};
33 
34 public:
38  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER, DtPduFactory* pduFactory = 0);
39 
41  virtual ~DtEventReportPdu() {};
42 
44  virtual DtEventType eventType() const;
45  virtual void setEventType(DtEventType type);
46 
48  virtual void printData() const;
49 
51  virtual void printDataToStream(std::ostream& stream) const;
52 
53 public:
56  static DtPdu *create(const DtNetPacket *initial,
57  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER, DtPduFactory* pduFactory = 0);
58 
61  static void addCallback(DtExerciseConn *conn,
62  DtEventReportPduCb cb, void *usr);
63  static void removeCallback(DtExerciseConn *conn,
64  DtEventReportPduCb cb, void *usr);
65 protected:
68 
71 };
72 
73 
74 #endif
DtEventReportPdu DtEventReportInteraction
Definition: eventReportPdu.h:19
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnDIS.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
virtual ~DtEventReportPdu()
Destructor.
Definition: eventReportPdu.h:41
virtual void printData() const
Implements DtPdu's virtual function to print the PDU's data.
Definition: pduHeader.h:14
Definition: dataP4.h:53
virtual void printDataToStream(std::ostream &stream) const
Prints the contents of the PDU to the specified stream.
class DtPduFactory:
Definition: pduFactory.h:38
DtPduKind internalGetPduKind() const
Returns the internal PDU kind.
Definition: eventReportPdu.h:67
DtPdu is the base class for all PDU's in VR-Link.
Definition: pdu.h:69
void(* DtEventReportPduCb)(DtEventReportPdu *pdu, void *usr)
DtEventReptPdu callback function signature.
Definition: eventReportPdu.h:23
Definition: disEnums.h:261
Instances of DtEventReptPdu are used to send/receive event report PDUs.
Definition: eventReportPdu.h:28
Definition: simanP4.h:84
DtEventType
Definition: disEnums.h:479
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
DtPduWithData provides the base class for all of the simulation management PDU's that have fixed/vari...
Definition: pduWithData.h:23
struct DtBufferPlaceHolder * DtBufferPtr
Definition: vlBaseMsg.h:17
#define DtUSE_INTERNAL_BUFFER
Definition: vlBaseMsg.h:22
virtual DtNetDataPduTail * dataSection() const =0
Returns a pointer to the data section of the PDU - the part that starts with the numberOfFixedFields ...
DtPduKind
([UID 4]) - PDU Type
Definition: disEnums.h:238

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)