VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stopFreezePdu.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2013 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
11 #if DtDIS
12 
13 #include <vlpi/disEnums.h>
14 #include "hostStructs.h"
15 #include "simanPdu.h"
16 
18 class DT_DLL_VL DtStopFreezePdu;
19 typedef DtStopFreezePdu DtStopFreezeInteraction;
20 
22 typedef void (*DtStopFreezePduCb)(DtStopFreezePdu *pdu, void *usr);
23 
27 class DT_DLL_VL DtStopFreezePdu : public DtSimanPdu
28 {
29 public:
30 
31  enum { PduStaticSize=40 };
32 
33 public:
35  DtStopFreezePdu(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
36  DtStopFreezePdu(const DtNetStopFreezePdu *initial,
37  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER, DtPduFactory* pduFactory = 0);
38 
39  DtStopFreezePdu(const DtEntityIdentifier &to,
40  const DtEntityIdentifier &from,
41  const DtTime realTime,
42  DtStopReason reason,
44 
45 
46 
48  DtTime realWorldTime() const;
49  void setRealWorldTime(const DtTime time);
50 
52  DtStopReason reason() const;
53  void setReason(DtStopReason reason);
54 
55 
57  int requestId() const;
58  void setRequestId(int id);
59 
61  int frozenBehavior() const;
62  void setFrozenBehavior(int behavior);
63 
67  virtual bool reflectWhenFrozen() const;
68  virtual void setReflectWhenFrozen(bool flag);
69 
73  virtual bool runClockWhenFrozen() const;
74  virtual void setRunClockWhenFrozen(bool flag);
75 
79  virtual bool updateWhenFrozen() const;
80  virtual void setUpdateWhenFrozen(bool flag);
81 
83  virtual void printData() const;
84 
86  virtual void printDataToStream(std::ostream& stream) const;
87 
88 public:
91  static DtPdu *create(const DtNetPacket *initial,
92  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER, DtPduFactory* pduFactory = 0);
93 
96  static void addCallback(DtExerciseConn *conn,
97  DtStopFreezePduCb cb, void *usr);
98  static void removeCallback(DtExerciseConn *conn,
99  DtStopFreezePduCb cb, void *usr);
100 
101 protected:
103  DtPduKind internalGetPduKind() const {return DtStopFreezePduKind;}
104 
105 };
106 
107 #endif

Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)