MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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/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 
94 #if DtHLA_1516
95  virtual void addUpdatedAttributes(const RTI::AttributeHandleValueMap& handleValues);
96 #else
97  virtual void addUpdatedAttributes(const RTI::AttributeHandleValuePairSet& handleValues);
98 #endif
99 
101  virtual const RTI::AttributeHandleSet* updatedAttributes() const;
102 #endif
103 
104  protected:
105 
106  unsigned char myExerciseId;
107 
108 #ifdef DtHLA
109  bool myWaitingForRegionData;
110  bool myStaticRegionFlag;
111  RTI::AttributeHandleSet* myUpdatedAttributes;
112 #endif
113  };
114 
115 }
116 
117 #endif

Document ID: Generated on Thu Apr 7 20:50:59 EDT 2016 from SVN revision 163818
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)