VR-Forces 4.1 Class Documentation
vrfAggregatePub.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2006 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: vrfAggregatePub.h,v $ $Revision: 1.6 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef VRFAGGREGATEPUB_H
10 #define VRFAGGREGATEPUB_H
11 
12 #include <vl/aggPub.h>
15 
16 #ifdef DtDIS
17 typedef DtAggregateStateEncoder DtAggPublisherEncoder;
18 typedef DtAggregateStateDecoder DtAggPublisherDecoder;
19 #elif DtHLA
20 typedef DtHlaStateEncoder DtAggPublisherEncoder;
21 typedef DtHlaStateDecoder DtAggPublisherDecoder;
22 #endif
23 
25 class DtEntityType;
26 class DtBaseEntityStateRepository;
27 
33 {
34 public:
35  typedef DtAggregateStateRepository* (*MyStateRepCreator)();
36 
37 public:
45  const DtEntityType& type,
46  DtExerciseConn* conn,
47  const DtGlobalObjectDesignator& id = DtVrfObjectIdGenerator::nullId()
48  );
49 
51  virtual ~DtVrfAggregatePublisher();
52 
53 public:
56  virtual void addEntity(const DtBaseEntityStateRepository*);
57  virtual void removeEntity(const DtBaseEntityStateRepository*);
58 
59  virtual void addAggregate(const DtBaseEntityStateRepository*);
60  virtual void removeAggregate(const DtBaseEntityStateRepository*);
61 
62 public:
69  virtual void tick();
70 
73  virtual DtExtAggregateStateRepository* aggregateProcessStateRep();
74  virtual DtExtAggregateStateRepository* aggregateStateRep();
75 
77  virtual DtExtAggregateStateRepository* agsr();
78 
79 #ifdef DtHLA
80 
81 
82 
83  virtual DtAggPublisherDecoder* decoder();
84 
87  virtual DtAggPublisherEncoder* encoder();
88 #endif
89 
91  virtual const DtObjectId& id() const;
92 
94  virtual const DtObjectId& localId() const;
95 
97  virtual const DtGlobalObjectDesignator& globalId() const;
98 
101  virtual void forceUpdate();
102 
103 protected:
104 #ifdef DtDIS
105 
106 
107  virtual void sendFinalPdu();
108 #endif
109 
110 private:
114 
115 protected:
116  DtAggregatePublisher* myPublisher;
117 };
118 
119 #endif

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)