VR-Link API Documentation for DIS
eventReptPdu.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
9 
10 #ifndef DtEventReportPdu_H_
11 #define DtEventReportPdu_H_
12 
13 #if DtDIS
14 
15 #include "hostStructs.h"
16 #include "pduWithData.h"
17 
19 
22 
24 typedef void (*DtEventReportPduCb)(DtEventReportPdu *pdu, void *usr);
25 
30 {
31 public:
32 
33  enum { PduStaticSize=40};
34 
35 public:
40 
42  virtual ~DtEventReportPdu() {};
43 
45  virtual DtEventType eventType() const;
46  virtual void setEventType(DtEventType type);
47 
49  virtual void printData() const;
50 
52  virtual void printDataToStream(std::ostream& stream) const;
53 
54 public:
57  static DtPdu *create(const DtNetPacket *initial,
59 
62  static void addCallback(DtExerciseConn *conn,
63  DtEventReportPduCb cb, void *usr);
64  static void removeCallback(DtExerciseConn *conn,
65  DtEventReportPduCb cb, void *usr);
66 protected:
69 
72 };
73 
74 
75 #endif
76 #endif
77 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)