VR-Link API Documentation for HLA 1.3
dRadioRcvrPub.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
9 
10 #ifndef dRadioRcvrPub_H_
11 #define dRadioRcvrPub_H_
12 
13 #if DtDIS
14 
15 
16 #include "dObjPub.h"
17 #include "pdu.h"
18 #include "radioRecvrSR.h"
19 #include "dRadioRcvrEnc.h"
20 #include "dRadioRcvrDec.h"
21 #include <vlutil/vlPrint.h>
22 
23 
25 {
26 public:
27 
30  typedef DtRadioReceiverRepository* (*DtStateRepCreator)();
31 
32 public:
33 
36  DtRadioReceiverRepository* stateRepToUse,
37  DtExerciseConn* conn,
38  const DtObjectId& entityId = DtObjectId::defaultId());
39 
42  DtExerciseConn* conn,
43  const DtObjectId& entityId = DtObjectId::defaultId(),
44  int radioId = 1);
45 
47  virtual ~DtRadioReceiverPublisher();
48 
53  virtual void tick();
54 
57  virtual DtRadioReceiverRepository* receiverRep();
58 
60  virtual DtRadioReceiverRepository* rsr();
61 
66 
70 
72  virtual const DtObjectId& id() const;
73 
75  virtual const DtObjectId& localId() const;
76 
78  virtual const DtGlobalObjectDesignator& globalId() const;
79 
81  virtual int radioId() const;
82 
86  virtual void sendFinalPduOnDestruction(bool onOff);
87 
90  virtual void forceUpdate();
91 
92 public:
93 
95  static void setStateRepCreator(DtStateRepCreator creator);
96  static DtStateRepCreator stateRepCreator(void);
97 
98  static void setClassDfltTimeThreshold(DtTime threshold);
99 
100 protected:
101 
103  void sendFinalPdu();
104 
106  void init(const DtEntityIdentifier& vehId);
107 
110 
113 
114 protected:
115  DtObjectId myId;
118  bool mySendFinalInDtor;
119 
120 protected:
121  static DtStateRepCreator theStateRepCreator;
122  static DtTime theClassDfltTimeThreshold;
123  static bool theClassDfltIsSetFlag;
124 };
125 
127 {
128  return static_cast<DtRadioReceiverRepository*>(myStateRep);
129 }
130 
131 #endif
132 #endif
133 

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)