VR-Forces 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) 2025 MAK Technologies, Inc.
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 
28  virtual ~DtAggregateExtendedRecordData() override;
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 
49  virtual ~DtExtAggregateBaseStateRepository() override;
50 
53 
57 
59  virtual DtStateRepository *clone(bool copy = false) const override;
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 override;
75 
76  const DtEntityType& objectType() const { return entityType(); };
77 
79  {
80  return myExtendedRecordData;
81  }
82 
84  {
85  return myExtendedRecordData;
86  }
87 
90  virtual void addEntity(const DtBaseEntityStateRepository*);
91  virtual void removeEntity(const DtBaseEntityStateRepository*);
92 
93  virtual void addAggregate(const DtBaseEntityStateRepository*);
94  virtual void removeAggregate(const DtBaseEntityStateRepository*);
95 
97  virtual void addSubordinate(const DtEntityIdentifier&);
98  virtual void removeSubordinate(const DtEntityIdentifier&);
99 
101  virtual void setExtendedData(const std::map<DtString, DtString> &ed) override;
102  virtual void setExtendedData(const DtString &key,
103  const DtString &value) override;
104 
108  virtual int numVrfVariableDatumRecords() const;
109 
111  virtual bool getUserVariableDatum(int userRecordNumber,
112  DtVariableDatumRecord& rec);
113 
115  virtual bool setUserVariableDatum(int userRecordNumber,
116  const DtVariableDatumRecord& record);
117 
122  virtual void updateDataRecords();
123 
127  virtual void setSendVrfObjectDataRecord(bool shouldSend);
128  virtual bool shouldSendVrfObjectDataRecord() const;
130 
132  int appearance() const;
133  void setAppearance(int);
134 
136  const std::vector<DtEntityIdentifier>& orderedSubordinates() const;
137  virtual void setOrderedSubordinates(const std::vector<DtEntityIdentifier>&);
138 
140 
141  virtual DtString formationName() const;
142  virtual void setFormationName(const DtString& formationName);
144 
146  virtual void updateExtensions();
147 
148  static DtExtAggregateBaseStateRepository* create();
149 
150 protected:
151 
152  virtual void extensionModified() override;
153 
154 protected:
157 
159  std::vector<DtEntityIdentifier> myOrderedSubordinates;
160 
165 
167 
168 };
169 
171 {
172  return myAppearance;
173 }
174 
176 {
177  if (i != myAppearance)
178  {
179  myRecordModified = true;
180  myAppearance = i;
181  }
182 }
183 
184 inline const std::vector<DtEntityIdentifier>& DtExtAggregateBaseStateRepository::orderedSubordinates() const
185 {
186  return myOrderedSubordinates;
187 }
DtString myFormationName
Definition: extAggregateBaseStateRepository.h:164
int myBitLength
Definition: extAggregateBaseStateRepository.h:162
Definition: vrfExtensions.h:22
std::vector< DtEntityIdentifier > myOrderedSubordinates
Definition: extAggregateBaseStateRepository.h:159
DtVrfExtensions & operator=(const DtVrfExtensions &orig)
DtVrfExtendedRecordData & extendedRecordData()
Definition: extAggregateBaseStateRepository.h:83
const DtEntityType & objectType() const
Definition: extAggregateBaseStateRepository.h:76
Definition: vrfExtendedRecordData.h:18
const DtVrfExtendedRecordData & extendedRecordData() const
Definition: extAggregateBaseStateRepository.h:78
bool myRecordModified
Definition: extAggregateBaseStateRepository.h:163
const std::vector< DtEntityIdentifier > & orderedSubordinates() const
Gets/sets the list of subordinates in subordinate order.
Definition: extAggregateBaseStateRepository.h:184
DtAggregateExtendedRecordData myExtendedRecordData
Definition: extAggregateBaseStateRepository.h:156
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:161
int appearance() const
Appearance as read from network or set by user.
Definition: extAggregateBaseStateRepository.h:170
int myAppearance
Definition: extAggregateBaseStateRepository.h:158
DtExtAggregateBaseStateRepository * myLastCopy
Definition: extAggregateBaseStateRepository.h:155
virtual void extensionModified()
bool mySendVrfObjectDataRec
Definition: extAggregateBaseStateRepository.h:166
void setAppearance(int)
Definition: extAggregateBaseStateRepository.h:175
#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 Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)