WebLVC 1.8 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pVrfAggregateEntity.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2017 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portal/pAggregate.h>
13 #include <matrix/vlTaitBryan.h>
14 #include <vlutil/vlString.h>
15 
16 namespace MAKVrExchange
17 {
18 
22  {
23  public:
24 
27 
30 
32  virtual ~DtPortalVrfAggregate();
33 
35  DtPortalVrfAggregate& operator = ( const DtPortalVrfAggregate& other );
36 
39 
40  bool operator == ( const DtPortalVrfAggregate& other ) const;
41  bool operator != ( const DtPortalVrfAggregate& other ) const;
42 
44 
48 
50  DtDEC_ATTRIBUTE( DtFloat64, PhysicalFootprint, physicalFootprint );
51 
53  DtDEC_ATTRIBUTE( DtFloat64, Morale, morale );
54 
56  DtDEC_ATTRIBUTE( DtInt32, Health, health );
57 
59  DtDEC_ATTRIBUTE( DtInt32, BaseHealth, baseHealth );
60 
62  DtDEC_ATTRIBUTE( DtInt32, MOPPLevel, MOPPLevel );
63 
65  DtDEC_ATTRIBUTE( DtInt32, PersonnelOfficers, personnelOfficers );
66 
68  DtDEC_ATTRIBUTE( DtInt32, BasePersonnelOfficers, basePersonnelOfficers );
69 
71  DtDEC_ATTRIBUTE( DtInt32, PersonnelWOs, personnelWOs );
72 
74  DtDEC_ATTRIBUTE( DtInt32, BasePersonnelWOs, basePersonnelWOs );
75 
77  DtDEC_ATTRIBUTE( DtInt32, PersonnelNCOs, personnelNCOs );
78 
80  DtDEC_ATTRIBUTE( DtInt32, BasePersonnelNCOs, basePersonnelNCOs );
81 
83  DtDEC_ATTRIBUTE( DtInt32, PersonnelEnlisted, personnelEnlisted );
84 
86  DtDEC_ATTRIBUTE( DtInt32, BasePersonnelEnlisted, basePersonnelEnlisted );
87 
89  DtDEC_ATTRIBUTE( DtInt32, NumberKilled, numberKilled );
90 
92  DtDEC_ATTRIBUTE( DtInt32, NumberCaptured, numberCaptured );
93 
95  DtDEC_ATTRIBUTE( DtInt32, NumberWounded, numberWounded );
96 
98  DtDEC_ATTRIBUTE( DtInt32, NumberMissing, numberMissing );
99 
101  DtDEC_ATTRIBUTE( DtRingSectorsRecord, SectorSizes, sectorSizes );
102 
104  DtDEC_ATTRIBUTE( DtFloat64, AttritionRate, attritionRate );
105 
107  DtDEC_ATTRIBUTE( DtFloat64, JammingStrengthOn, jammingStrengthOn );
108 
110  DtDEC_ATTRIBUTE( DtFloat64, EWCommsDegradationPercent, EWCommsDegradationPercent );
111 
113  DtDEC_ATTRIBUTE( DtFloat64, AutoResupplyPeriod, autoResupplyPeriod );
114 
116  DtDEC_ATTRIBUTE( DtString, CombatEffectiveness, combatEffectiveness );
117 
119  DtDEC_ATTRIBUTE( DtString, Posture, posture );
120 
122  DtDEC_ATTRIBUTE( DtPostureTransitionRecord, PostureTransition, postureTransition );
123 
125  DtDEC_ATTRIBUTE( DtTypedQuantityRecordList, Equipment, equipment );
126 
128  DtDEC_ATTRIBUTE( DtTypedQuantityRecordList, BaseEquipment, baseEquipment );
129 
131  DtDEC_ATTRIBUTE( DtTypedQuantityRecordList, Weapons, weapons );
132 
134  DtDEC_ATTRIBUTE( DtTypedQuantityRecordList, BaseWeapons, baseWeapons );
135 
137  DtDEC_ATTRIBUTE( DtTypedQuantityRecordList, Ammunition, ammunition );
138 
140  DtDEC_ATTRIBUTE( DtTypedQuantityRecordList, BaseAmmunition, baseAmmunition );
141 
143  DtDEC_ATTRIBUTE( DtAmountRecord, Food, food );
144 
146  DtDEC_ATTRIBUTE( DtAmountRecord, BaseFood, baseFood );
147 
149  DtDEC_ATTRIBUTE( DtAmountRecord, Water, water );
150 
152  DtDEC_ATTRIBUTE( DtAmountRecord, BaseWater, baseWater );
153 
155  DtDEC_ATTRIBUTE( DtAmountRecord, MotorGas, motorGas );
156 
158  DtDEC_ATTRIBUTE( DtAmountRecord, BaseMotorGas, baseMotorGas );
159 
161  DtDEC_ATTRIBUTE( DtAmountRecord, AviationFuel, aviationFuel );
162 
164  DtDEC_ATTRIBUTE( DtAmountRecord, BaseAviationFuel, baseAviationFuel );
165 
167  DtDEC_ATTRIBUTE( DtAmountRecord, DieselFuel, dieselFuel );
168 
170  DtDEC_ATTRIBUTE( DtAmountRecord, BaseDieselFuel, baseDieselFuel );
171 
173  DtDEC_ATTRIBUTE( DtAmountRecord, Oil, oil );
174 
176  DtDEC_ATTRIBUTE( DtAmountRecord, BaseOil, baseOil );
177 
179  DtDEC_ATTRIBUTE( DtAmountRecord, Lubricant, lubricant );
180 
182  DtDEC_ATTRIBUTE( DtAmountRecord, BaseLubricant, baseLubricant );
183 
184 
186  DtDEC_ATTRIBUTE( DtMoppLevelTransitionRecord, MOPPTransition, MOPPTransition );
187 
189  DtDEC_ATTRIBUTE( DtString, Activity, activity );
190 
192  DtDEC_ATTRIBUTE( DtString, EngagementResults, engagementResults );
193 
195  DtDEC_ATTRIBUTE( DtIndirectFirePowerRecordList, IndirectFirePower, indirectFirePower );
196 
198  DtDEC_ATTRIBUTE( DtRangedPowerRecordList, CombatPower, combatPower );
199 
201  DtDEC_ATTRIBUTE( DtEffectModifierRecordList, Vulnerability, vulnerability );
202 
204  DtDEC_ATTRIBUTE( DtCasualtyReportRecordList, CasualtiesPerAttacker, casualtiesPerAttacker );
205 
207  DtDEC_ATTRIBUTE( DtTypedAmountRecordList, Resources, resources );
208 
210  DtDEC_ATTRIBUTE( DtTypedResupplyAmountRecordList, BaseResources, baseResources );
211 
213  DtDEC_ATTRIBUTE( DtString, Contamination, contamination );
214 
216  DtDEC_ATTRIBUTE( DtEWAttackRecordList, EWAttacks, EWAttacks );
217 
219  DtDEC_ATTRIBUTE( DtEWAttackDefendingRecordList, EWAttacksDefending, EWAttacksDefending );
220 
222  DtDEC_ATTRIBUTE( DtString, ResupplyMode, resupplyMode );
223 
225  DtDEC_ATTRIBUTE( DtTypedRateRecordList, SuppliesOffered, suppliesOffered );
226 
228 
230  public:
231 
233 
234  static DtPortalMessage* create();
235 
236  virtual unsigned int netSize() const;
237  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
238  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
239 
240  virtual std::ostream& printDataToStream( std::ostream& str ) const;
241 
242  };
243 
244 
246  {
247  return new DtPortalVrfAggregate();
248  }
249 
250 }
std::list< DtTypedQuantityRecord > DtTypedQuantityRecordList
Definition: typedQuantityRecord.h:63
Definition: amountRecord.h:23
std::list< DtCasualtyReportRecord > DtCasualtyReportRecordList
Definition: casualtyReportRecord.h:64
static const DtPortalMessageKind theKind
NOTE: DtDEC_ATTRIBUTE resets the access specifier to protected.
Definition: pVrfAggregateEntity.h:232
std::list< DtTypedResupplyAmountRecord > DtTypedResupplyAmountRecordList
Definition: typedResupplyAmountRecord.h:63
static DtPortalMessage * create()
Definition: pVrfAggregateEntity.h:245
#define DT_DLL_LIBPORTAL
Definition: include/portal/dllExport.h:20
#define DtDEC_ATTRIBUTE(T, N, n)
A Macro to define an attribute; as well as make an accessor and mutator for that attribute.
Definition: addAttribute.h:49
Represents aggregated entity objects in a simulation.
Definition: pVrfAggregateEntity.h:21
The base class for all messages passed through the portal.
Definition: pMessage.h:66
std::list< DtRangedPowerRecord > DtRangedPowerRecordList
Definition: rangedPowerRecord.h:63
std::list< DtEWAttackRecord > DtEWAttackRecordList
Definition: ewAttackRecord.h:62
Definition: moppLevelTransitionRecord.h:23
Definition: ringSectorsRecord.h:22
std::list< DtTypedAmountRecord > DtTypedAmountRecordList
Definition: typedAmountRecord.h:62
std::list< DtIndirectFirePowerRecord > DtIndirectFirePowerRecordList
Definition: indirectFirePowerRecord.h:71
std::list< DtTypedRateRecord > DtTypedRateRecordList
Definition: typedRateRecord.h:61
std::list< DtEffectModifierRecord > DtEffectModifierRecordList
Definition: effectModifierRecord.h:62
Contains the DtPortalAggregate class declaration.
Represents aggregated entity objects in a simulation.
Definition: pAggregate.h:21
Definition: postureTransitionRecord.h:23
DtPortalMessageKind
A List of message kinds distributed with the Portal.
Definition: pMessageKinds.h:23
std::list< DtEWAttackDefendingRecord > DtEWAttackDefendingRecordList
Definition: ewAttackDefendingRecord.h:63

Document ID: Generated on Wed Mar 12 15:05:17 EDT 2025 from SVN revision 274272
Copyright © 2005-2025 MAK Technologies. All Rights Reserved (www.mak.com)