VR-Link API Documentation for DIS
hStopInter.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef hStopInter_H_
8 #define hStopInter_H_
9 
10 #if DtHLA
11 
12 #include "hIntWEncDec.h"
13 #include "hostStructs.h"
14 #include <matrix/vlMath.h>
15 
16 
17 
21 
24 
25 
26 
28 typedef void (*DtStopFreezeInteractionCb) (DtStopFreezeInteraction* inter,
29  void* usr);
30 
35 
36 class DT_DLL_VL DtStopFreezeInteraction : public DtInteractionWithEncDec
37 {
38 public:
39 
42 
44  virtual ~DtStopFreezeInteraction();
45 
48 
50  DtStopFreezeInteraction& operator=(const DtStopFreezeInteraction& orig);
51 
53  virtual void printData() const;
54 
56  virtual void printDataToStream(std::ostream& stream) const;
57 
59  virtual void setSenderId(const DtEntityIdentifier& id);
60  virtual const DtEntityIdentifier& senderId() const;
61 
63  virtual void setReceiverId(const DtEntityIdentifier& id);
64  virtual const DtEntityIdentifier& receiverId() const;
65 
67  virtual void setRealWorldTime(const DtTime time);
68  virtual DtTime realWorldTime() const;
69 
71  virtual void setRequestId(int id);
72  virtual int requestId() const;
73 
75  virtual DtStopReason reason() const;
76  virtual void setReason(DtStopReason reason);
77 
79  virtual bool reflectWhenFrozen() const;
80  virtual void setReflectWhenFrozen(bool flag);
81 
83  virtual bool runClockWhenFrozen() const;
84  virtual void setRunClockWhenFrozen(bool flag);
85 
87  virtual bool updateWhenFrozen() const;
88  virtual void setUpdateWhenFrozen(bool flag);
89 
91  virtual const char* name() const;
92 
93 public:
94 
97  static DtInteraction* create();
98 
101  static void addCallback(DtExerciseConn* conn,
102  DtStopFreezeInteractionCb cb, void* usr,
103  DtDDMRegionSP region = DtDDMRegionSP());
104  static void removeCallback(DtExerciseConn* conn,
105  DtStopFreezeInteractionCb cb, void* usr,
106  DtDDMRegionSP region = DtDDMRegionSP());
107 
108 protected:
109 
110  DtEntityIdentifier myOrigEnt;
111  DtEntityIdentifier myReceiveEnt;
112  int myRequestId;
113  DtTime myRealTime;
114  DtStopReason myReason;
115  bool myReflect;
116  bool myUpdate;
117  bool myRunClock;
118 };
119 
120 #endif
121 #endif
122 

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)