VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
extAggregateBaseStateRepository.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2018 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
11 
12 #pragma once
13 
17 #include <vl/aggregateStateRepository.h>
18 #include <vector>
19 
21 {
22 public:
23 
26 
29 
31  virtual void updateDataRecords(DtAggregateStateRepository*);
32 
34  virtual void decodeDataRecords(DtAggregateStateRepository*);
35 
37  virtual bool readFromRecord(DtVariableDatumRecord&);
38 };
39 
41 {
42 
43 public:
44 
47 
50 
53 
57 
59  virtual DtStateRepository* clone(bool copy = false) const;
60 
63  virtual int compare(const DtExtAggregateBaseStateRepository* rhs);
64 
66  virtual int compareToMostRecent();
67 
70  virtual bool locationsDifferent(bool updateIfDifferent);
71 
74  virtual DtString extendedData(const DtString& key) const;
75 
77  {
78  return myExtendedRecordData;
79  }
80 
82  {
83  return myExtendedRecordData;
84  }
85 
90  virtual DtString uuidString() const;
91 
92 public:
95  virtual void addEntity(const DtBaseEntityStateRepository*);
96  virtual void removeEntity(const DtBaseEntityStateRepository*);
97 
98  virtual void addAggregate(const DtBaseEntityStateRepository*);
99  virtual void removeAggregate(const DtBaseEntityStateRepository*);
100 
102  virtual void addSubordinate(const DtEntityIdentifier&);
103  virtual void removeSubordinate(const DtEntityIdentifier&);
104 
106  virtual void setExtendedData(const std::map<DtString, DtString>& ed);
107  virtual void setExtendedData(const DtString& key, const DtString& value);
108 
109 public:
113  virtual int numVrfVariableDatumRecords() const;
114 
116  virtual bool getUserVariableDatum(int userRecordNumber,
117  DtVariableDatumRecord& rec);
118 
120  virtual bool setUserVariableDatum(int userRecordNumber,
121  const DtVariableDatumRecord& record);
122 
128  virtual void updateDataRecords();
129 
133  virtual void setSendVrfObjectDataRecord(bool shouldSend);
134  virtual bool shouldSendVrfObjectDataRecord() const;
136 
137 public:
139  int appearance() const;
140  void setAppearance(int);
141 
143  const std::vector<DtEntityIdentifier>& orderedSubordinates() const;
144  virtual void setOrderedSubordinates(const std::vector<DtEntityIdentifier>&);
145 
147 
148  virtual DtString formationName() const;
149  virtual void setFormationName(const DtString& formationName);
151 
152 public:
154  virtual void updateExtensions();
155 
156 public:
157 
158  static DtExtAggregateBaseStateRepository* create();
159 
160 protected:
161  virtual void extensionModified();
162 
163 protected:
166 
168  std::vector<DtEntityIdentifier> myOrderedSubordinates;
169 
174 
176 };
177 
179 {
180  return myAppearance;
181 }
182 
184 {
185  if (i != myAppearance)
186  {
187  myRecordModified = true;
188  myAppearance = i;
189  }
190 }
191 
192 inline const std::vector<DtEntityIdentifier>& DtExtAggregateBaseStateRepository::orderedSubordinates() const
193 {
194  return myOrderedSubordinates;
195 }
DtString myFormationName
Definition: extAggregateBaseStateRepository.h:173
int myBitLength
Definition: extAggregateBaseStateRepository.h:171
Definition: vrfExtensions.h:22
std::vector< DtEntityIdentifier > myOrderedSubordinates
Definition: extAggregateBaseStateRepository.h:168
DtVrfExtensions & operator=(const DtVrfExtensions &orig)
DtVrfExtendedRecordData & extendedRecordData()
Definition: extAggregateBaseStateRepository.h:81
Definition: vrfExtendedRecordData.h:18
const DtVrfExtendedRecordData & extendedRecordData() const
Definition: extAggregateBaseStateRepository.h:76
bool myRecordModified
Definition: extAggregateBaseStateRepository.h:172
const std::vector< DtEntityIdentifier > & orderedSubordinates() const
Gets/sets the list of subordinates in subordinate order.
Definition: extAggregateBaseStateRepository.h:192
DtAggregateExtendedRecordData myExtendedRecordData
Definition: extAggregateBaseStateRepository.h:165
Definition: extAggregateBaseStateRepository.h:20
virtual const std::map< DtString, DtString > & extendedData() const
Gets/sets extended data.
Contains the DtVrfExtensions class declaration.
char * mySubordinateBuffer
Definition: extAggregateBaseStateRepository.h:170
int appearance() const
Appearance as read from network or set by user.
Definition: extAggregateBaseStateRepository.h:178
int myAppearance
Definition: extAggregateBaseStateRepository.h:167
DtExtAggregateBaseStateRepository * myLastCopy
Definition: extAggregateBaseStateRepository.h:164
virtual void extensionModified()
bool mySendVrfObjectDataRec
Definition: extAggregateBaseStateRepository.h:175
void setAppearance(int)
Definition: extAggregateBaseStateRepository.h:183
#define DT_DLL_vrfExtObjects
Definition: dllExport.h:23
Definition: extAggregateBaseStateRepository.h:40
virtual void setExtendedData(const std::map< DtString, DtString > &)
Gets/sets extended data.

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)