VR-Link API Documentation for HLA 1516
dAggPub.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 #pragma once
6 
7 
8 
9 #if DtDIS
10 
11 
12 #include "aggregateSR.h"
13 #include "dObjPub.h"
14 #include "dAggEnc.h"
15 #include "dAggDec.h"
16 
18 
23 {
26  typedef DtAggregateStateRepository* (*DtStateRepCreator)();
27 
28 public:
29 
32  DtAggregateStateRepository *stateRepToUse,
33  DtExerciseConn* conn,
34  const DtObjectId& id = DtObjectId::nullId());
35 
38  DtExerciseConn* conn,
39  const DtObjectId& id = DtObjectId::nullId());
40 
44  const DtEntityType& type,
45  DtExerciseConn* conn,
46  const DtObjectId& id = DtObjectId::defaultId());
47 
51  const DtEntityType& type,
52  DtExerciseConn* conn,
53  DtDeadReckonTypes algorithm,
54  DtForceType forceId,
55  const DtObjectId& id = DtObjectId::defaultId());
56 
58  virtual ~DtAggregatePublisher();
59 
61  virtual void tick();
62 
64  virtual void forceUpdate();
65 
67  virtual DtAggregateStateRepository* aggregateStateRep();
68 
70  virtual DtAggregateStateRepository* asr();
71 
73  virtual const DtObjectId& id() const;
74 
76  virtual const DtObjectId& localId() const;
77 
79  virtual const DtGlobalObjectDesignator& globalId() const;
80 
81 public:
82 
84  static void setStateRepCreator(DtStateRepCreator creator);
85  static DtStateRepCreator setStateRepCreator(void);
86 
87  static void setClassDfltTimeThreshold(DtTime threshold);
88 
89 protected:
90 
92  void init(const DtEntityIdentifier& vehId);
93 
96 
99 
100 protected:
101 
102  DtObjectId myId;
103  DtAggregateStateDecoder* myAggregateDecoder;
104  DtAggregateStateEncoder* myAggregateEncoder;
105 
106 protected:
107  static DtStateRepCreator theStateRepCreator;
108  static DtTime theClassDfltTimeThreshold;
109  static bool theClassDfltIsSetFlag;
110 };
111 
112 
114 {
115  return static_cast<DtAggregateStateRepository*>(myStateRep);
116 }
117 
118 inline const DtObjectId& DtAggregatePublisher::localId() const
119 {
120  return id();
121 }
122 
123 
124 #endif
125 

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)