VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
emitterSystemPublisherDIS.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
10 
11 #ifndef DtDisEmitterSystemPublisher_H_
12 #define DtDisEmitterSystemPublisher_H_
13 
14 #if DtDIS
15 
16 
17 #include "objectPublisherDIS.h"
21 
22 
27 {
28 public:
29 
31  typedef DtEmitterSystemRepository* (*DtStateRepCreator)();
32 
33 public:
34 
38  DtEmitterSystemRepository* stateRepToUse,
39  DtExerciseConn* conn,
40  const DtObjectId& id = DtObjectId::defaultId());
41 
45  DtExerciseConn* conn,
46  const DtObjectId& id = DtObjectId::defaultId());
47 
51  DtExerciseConn* conn,
52  const char* name,
53  const DtObjectId& id = DtObjectId::defaultId());
54 
56  virtual ~DtEmitterSystemPublisher();
57 
58 
60  virtual void forceUpdate();
61 
63  virtual void tick();
64 
66  virtual DtEmitterSystemRepository* emitterSystemStateRep();
67  virtual DtEmitterSystemRepository* esr();
68 
70  virtual const DtObjectId& id() const;
71 
72  virtual const DtObjectId& localId() const;
73 
75  virtual const DtGlobalObjectDesignator& globalId() const;
76 
79  virtual void setBeamAzimuthThreshold(double threshold);
80 
82  virtual double beamAzimuthThreshold() const;
83 
86  virtual void setBeamElevationThreshold(double threshold);
87 
88 
90  virtual double beamElevationThreshold() const;
91 
93  void sendFinalPdu();
94 
95 public:
96 
98  static void setStateRepCreator(DtStateRepCreator creator);
99  static DtStateRepCreator stateRepCreator(void);
100 
101  static void setClassDfltTimeThreshold(DtTime threshold);
102 
103 protected:
104 
106  void init( const char* name,
107  const DtEntityIdentifier& id);
108 
111 
114 
115 protected:
116 
117  DtObjectId myId;
118  DtEmitterSystemStateDecoder* myEmitterSystemDecoder;
119  DtEmitterSystemStateEncoder* myEmitterSystemEncoder;
120  bool mySendFinalInDtor;
121 
122 
123 protected:
124  static DtStateRepCreator theStateRepCreator;
125  static DtTime theClassDfltTimeThreshold;
126  static bool theClassDfltIsSetFlag;
127  char *myName;
128 };
129 
131 {
132  return static_cast<DtEmitterSystemRepository*>(myStateRep);
133 }
134 
135 #endif
136 #endif
137 

Document ID: Generated on Mon Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (www.mak.com)