VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
silentEntityList.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vlutil/vlMachineTypes.h>
13 #include <vl/packets/aggStateP.h>
14 #include <vl/hostStructs.h>
15 #include <vlpi/disEnums.h>
16 #include <iosfwd>
17 
22 {
23 public:
24 
28 
30  virtual ~DtSilentEntityList();
31 
33  DtSilentEntityList& operator=(const DtSilentEntityList& orig);
34  DtSilentEntityList& operator=(const DtNetSilentEntityList& orig);
35 
37  int operator==(const DtSilentEntityList& otherguy) const;
38  int operator!=(const DtSilentEntityList& otherguy) const;
39 
41  virtual void setNumberOfEntities(const DtU16 value);
42  virtual DtU16 numberOfEntities() const;
43 
45  virtual void setEntityType(const DtEntityType& type);
46  virtual const DtEntityType& entityType() const;
47 
52  virtual bool setNumberOfAppearanceRecords(const DtU16 value);
53  virtual DtU16 numberOfAppearanceRecords() const;
54 
55 #if DtHLA
56 
60  virtual void setAppearance(DtU32 app);
61  virtual DtU32 appearance() const;
62 
63 #endif
64 
70  virtual bool setAppearance(int index, DtU32 app);
71  virtual bool getAppearance(int index, DtU32& app) const;
72 
75  virtual bool setAppearanceAttribute(int index,
76  const DtAppearAttribute attr, const DtAppearAttrVal val);
77  virtual bool getAppearanceAttribute(int index,
78  const DtAppearAttribute attr, DtAppearAttrVal& val) const;
79 
80 
82  virtual void printData() const;
83 
84  virtual void printDataToStream(std::ostream &stream) const;
85 
87  virtual void unloadNetRecord(const DtNetSilentEntityList& record);
88  virtual void unloadNetRecord(const DtNetSilentEntityList_RPR_20& record, bool useAppearanceList = false);
89  virtual void loadNetRecord(DtNetSilentEntityList& record) const;
90  virtual void loadNetRecord(DtNetSilentEntityList_RPR_20& record, bool useAppearanceList = false) const;
91 
94  virtual int networkByteLength(double rpr_version = 1.0) const;
95 
96 public:
97 
100  static int byteLengthOfNetworkRecord(
101  DtNetSilentEntityList* recPtr, double rprVersion = 1.0);
102 
103 protected:
104 
109 #if DtHLA
110  DtU32 myAppearance;
111 #endif
113 
114 };
DtAppearAttrVal
Create an enumeration type, but since many of the names will have the same value, define them all as ...
Definition: disEnums.h:1425
DtNetAggregateEntityList is the network structure for the silent aggregate entity list for the aggreg...
Definition: aggStateP.h:33
const bool operator==(const DtU128 &lhs, const DtU128 &rhs)
DtU16 myNumberOfEntities
Data members:
Definition: silentEntityList.h:106
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtNetSilentEntityList_RPR_20 is the network representation of the SilentEntityStruct from RPR FOM ver...
Definition: aggStateP.h:48
This file declares the classes DtNetSilentAggregateList, DtNetSilentEntityList, DtNetSilentEntityList...
DtU16 myNumberOfAppearanceRecords
Definition: silentEntityList.h:108
DtSilentEntityList is a class which contains the information needed to describe a list of silent enti...
Definition: silentEntityList.h:21
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
DtEntityType myEntityType
Definition: silentEntityList.h:107
unsigned short DtU16
A 16 bit unsigned integer value.
Definition: vlMachineTypes.h:140
Contains the standard DIS enumerations.
const bool operator!=(const DtU128 &lhs, const DtU128 &rhs)
unsigned long DtU32
A 32 bit unsigned integer value.
Definition: vlMachineTypes.h:153
DtAppearAttribute
If you put spaces between the &quot;&lt;&lt;&quot; and the surrounding strings, enumstr gets confused and thinks the ...
Definition: disEnums.h:1270
DtU32 * myEntityAppearanceList
Definition: silentEntityList.h:112
This file contains typedefs for machine dependant types.
DtEntityType is used to represent the type an entity object.
Definition: entityType.h:26

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)