VR-Vantage API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vrfAggregatePublisher.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 #include <vl/aggregatePublisher.h>
11 
12 #ifdef DtDIS
13 typedef DtAggregateStateEncoder DtAggPublisherEncoder;
14 typedef DtAggregateStateDecoder DtAggPublisherDecoder;
15 #elif DtHLA
16 typedef DtHlaStateEncoder DtAggPublisherEncoder;
17 typedef DtHlaStateDecoder DtAggPublisherDecoder;
18 #endif
19 
21 class DtEntityType;
22 class DtBaseEntityStateRepository;
23 
29 {
30 public:
31  typedef DtAggregateStateRepository* (*MyStateRepCreator)();
32 
33 public:
41  const DtEntityType& type,
42  DtExerciseConn* conn,
43  const DtGlobalObjectDesignator& id = DtVrfObjectIdGenerator::nullId()
44  );
45 
47  virtual ~DtVrfAggregatePublisher();
48 
49 public:
52  virtual void addEntity(const DtBaseEntityStateRepository*);
53  virtual void removeEntity(const DtBaseEntityStateRepository*);
54 
55  virtual void addAggregate(const DtBaseEntityStateRepository*);
56  virtual void removeAggregate(const DtBaseEntityStateRepository*);
57 
61  virtual void setExtendedData(const DtString& key, const DtString& value);
62  virtual void clearExtendedData();
63  virtual void removeExtendedData(const DtString& key);
64  virtual DtString extendedData(const DtString& key) const;
66 
67 public:
74  virtual void tick();
75 
78  virtual DtExtAggregateStateRepository* aggregateProcessStateRep();
79  virtual DtExtAggregateStateRepository* aggregateStateRep();
80 
82  virtual DtExtAggregateStateRepository* agsr();
83 
84 #ifdef DtHLA
85 
86 
87 
88  virtual DtAggPublisherDecoder* decoder();
89 
92  virtual DtAggPublisherEncoder* encoder();
93 #endif
94 
96  virtual const DtObjectId& id() const;
97 
99  virtual const DtObjectId& localId() const;
100 
102  virtual const DtGlobalObjectDesignator& globalId() const;
103 
106  virtual void forceUpdate();
107 
109  virtual DtAggregatePublisher* aggregatePublisher();
110 
111 protected:
112 #ifdef DtDIS
113 
114 
115  virtual void sendFinalPdu();
116 #endif
117 
118 private:
122 
123 protected:
124  DtAggregatePublisher* myPublisher;
125 };


Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)