MAK Data Logger API Documentation for DIS
lgrPublisherInterface.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 lgrPublisherInterface_H_
10 #define lgrPublisherInterface_H_
11 
12 #include "lgrSim.h"
13 
14 #ifdef DtHLA
15 #include <vl/region.h>
16 #endif
17 
18 class DtStateMsg;
19 class DtPdu;
20 
21 namespace MAKLogger
22 {
23  class DtAbsoluteTime;
24 
28  {
29  public:
30 
32 
34  virtual ~DtLgrPublisherInterface();
35 
36 #if DtHLA
37  virtual void update(const DtStateMsg& msg, double scaling, bool isStatic) = 0;
38 #endif
39 
40 #if DtDIS
41  virtual void update( const DtPdu& pdu, double scaling, bool isStatic, bool sendFlag ) = 0;
42 #endif
43 
45  virtual void setExerciseId(unsigned char exerciseId);
46 
48  virtual unsigned char exerciseId() const;
49 
50 
52  virtual void sendUpdateAtScaleChangePoint(double oldScale,
53  double newScale, bool wasStatic, bool isStatic) = 0;
54 
56  virtual void tick(double scaling, bool isStatic) = 0;
57 
58 #ifdef DtHLA
59 
65  virtual bool updateRegion(const DtStateMsg& msg);
66 
68  virtual void setRegion(const DtDDMRegionSet& region) = 0;
69 
71  virtual const DtDDMRegionSet& publishingRegions() const = 0;
72 
75  virtual void setStaticRegionFlag(bool enabled);
76 
78  virtual bool staticRegionFlag() const;
79 
82  virtual bool publishingToRegion( DtDDMRegionSP region ) = 0;
83 
87  virtual void setWaitingForRegionData(bool waitForData);
88 
91  virtual bool waitingForRegionData();
92 
93 #endif
94 
95  protected:
96  unsigned char myExerciseId;
97 
98 #ifdef DtHLA
99  bool myWaitingForRegionData;
100  bool myStaticRegionFlag;
101 #endif
102  };
103 
104 }
105 
106 #endif

Document ID: Generated on Thu Apr 10 18:53:01 EDT 2014 from SVN revision 138105
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)