VR-Link API Documentation for DIS
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

Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)