VR-Link API Documentation for HLA 1.3
stopPdu.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #ifndef DtStopPdu_H_
10 #define DtStopPdu_H_
11 
12 #if DtDIS
13 
14 #include <vlpi/disEnums.h>
15 #include "hostStructs.h"
16 #include "simanPdu.h"
17 
19 class DT_DLL_VL DtStopFreezePdu;
20 typedef DtStopFreezePdu DtStopFreezeInteraction;
21 
23 typedef void (*DtStopFreezePduCb)(DtStopFreezePdu *pdu, void *usr);
24 
28 class DT_DLL_VL DtStopFreezePdu : public DtSimanPdu
29 {
30 public:
31 
32  enum { PduStaticSize=40 };
33 
34 public:
36  DtStopFreezePdu(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
37  DtStopFreezePdu(const DtNetStopFreezePdu *initial,
39 
40  DtStopFreezePdu(const DtEntityIdentifier &to,
41  const DtEntityIdentifier &from,
42  const DtTime realTime,
43  DtStopReason reason,
45 
46 
47 
49  DtTime realWorldTime() const;
50  void setRealWorldTime(const DtTime time);
51 
53  DtStopReason reason() const;
54  void setReason(DtStopReason reason);
55 
57  int frozenBehavior() const;
58  void setFrozenBehavior(int behavior);
59 
61  int requestId() const;
62  void setRequestId(int id);
63 
65  virtual void printData() const;
66 
68  virtual void printDataToStream(std::ostream& stream) const;
69 
70 public:
73  static DtPdu *create(const DtNetPacket *initial,
75 
78  static void addCallback(DtExerciseConn *conn,
79  DtStopFreezePduCb cb, void *usr);
80  static void removeCallback(DtExerciseConn *conn,
81  DtStopFreezePduCb cb, void *usr);
82 
83 protected:
85  DtPduKind internalGetPduKind() const {return DtStopFreezePduKind;}
86 
87 };
88 
89 #endif
90 #endif
91 

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)