WebLVC 1.7d API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pAggregate.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portal/pBaseEntity.h>
13 #include <matrix/vlTaitBryan.h>
14 #include <vlutil/vlString.h>
15 
16 namespace MAKVrExchange
17 {
18 
22  {
23  public:
24 
27 
29  DtPortalAggregate( const DtPortalAggregate& other );
30 
32  virtual ~DtPortalAggregate();
33 
35  DtPortalAggregate& operator = ( const DtPortalAggregate& other );
36 
39 
40  bool operator == ( const DtPortalAggregate& other ) const;
41  bool operator != ( const DtPortalAggregate& other ) const;
42 
44 
48 
50  DtDEC_ATTRIBUTE( DtU32, ForceId, forceId );
51 
53  DtDEC_ATTRIBUTE( DtU32, AggregateState, aggregateState );
54 
56  DtDEC_ATTRIBUTE( DtU32, Formation, formation );
57 
60  DtDEC_ATTRIBUTE( DtString, AggregateType, aggregateType );
61 
63  DtDEC_ATTRIBUTE( DtString, EntityIdentifier, entityIdentifer );
64 
66  DtDEC_ATTRIBUTE( DtString, MarkingText, markingText );
67 
69  DtDEC_ATTRIBUTE( DtU32, MarkingCharacterSet, markingCharacterSet );
70 
72  DtDEC_ATTRIBUTE( DtVector32, Dimensions, dimensions );
73 
75  DtDEC_ATTRIBUTE( std::vector<DtString>, Subaggregates, subaggregates );
76 
78  DtDEC_ATTRIBUTE( std::vector<DtString>, Entities, entities );
79 
82  DtDEC_ATTRIBUTE( DtSilentAggregateArray, SilentAggregates, silentAggregates );
83 
86  DtDEC_ATTRIBUTE( DtSilentEntityArray, SilentEntities, silentEntities );
87 
89  DtDEC_ATTRIBUTE( DtAggregateVariableDatumArray, VariableDatums, variableDatums );
90 
93  DtDEC_ATTRIBUTE( DtString, LVCID, lvcID );
94 
96  DtDEC_ATTRIBUTE( DtString, SideName, sideName );
97 
99  DtDEC_ATTRIBUTE( DtString, MySuperior, mySuperior );
100 
103  DtDEC_ATTRIBUTE( DtU32, DamageState, damageState );
104 
106  DtDEC_ATTRIBUTE( bool, Immobilized, immobilized );
107 
109  DtDEC_ATTRIBUTE( bool, FirePowerDisabled, firePowerDisabled );
110 
112 
114  public:
115 
117 
118  static DtPortalMessage* create();
119 
120  virtual unsigned int netSize() const;
121  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
122  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
123 
124  virtual std::ostream& printDataToStream( std::ostream& str ) const;
125 
126  };
127 
128 
130  {
131  return new DtPortalAggregate();
132  }
133 
134 }
std::vector< DtSilentEntity > DtSilentEntityArray
Definition: aggregateTypes.h:132
#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
Contains the DtPortalBaseEntity class declaration.
static DtPortalMessage * create()
Definition: pAggregate.h:129
The base class for all messages passed through the portal.
Definition: pMessage.h:65
std::vector< DtSilentAggregate > DtSilentAggregateArray
A vector of DtSilentAggregates.
Definition: aggregateTypes.h:131
std::vector< DtAggregateVariableDatum > DtAggregateVariableDatumArray
Definition: aggregateTypes.h:129
Represents attributes common to Entities and Aggregates.
Definition: pBaseEntity.h:23
Represents aggregated entity objects in a simulation.
Definition: pAggregate.h:21
DtPortalMessageKind
A List of message kinds distributed with the Portal.
Definition: pMessageKinds.h:23
static const DtPortalMessageKind theKind
NOTE: DtDEC_ATTRIBUTE resets the access specifier to protected.
Definition: pAggregate.h:116

Document ID: Generated on Wed Jun 21 15:05:44 EDT 2023 from SVN revision 256253
Copyright © 2005-2023 MAK Technologies. All Rights Reserved (www.mak.com)