VR-Link API Documentation for DIS
silentEntityList.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 VT MAK
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 
50  virtual bool setNumberOfAppearanceRecords(const DtU16 value);
51  virtual DtU16 numberOfAppearanceRecords() const;
52 
53 #if DtHLA
54 
56  virtual void setAppearance(DtU32 app);
57  virtual DtU32 appearance() const;
58 
59 #else
60 
64  virtual bool setAppearance(int index, DtU32 app);
65  virtual bool getAppearance(int index, DtU32& app) const;
66 
69  virtual bool setAppearanceAttribute(int index,
70  const DtAppearAttribute attr, const DtAppearAttrVal val);
71  virtual bool getAppearanceAttribute(int index,
72  const DtAppearAttribute attr, DtAppearAttrVal& val) const;
73 
74 #endif
75 
77  virtual void printData() const;
78 
79  virtual void printDataToStream(std::ostream &stream) const;
80 
82  virtual void unloadNetRecord(const DtNetSilentEntityList& record);
83  virtual void unloadNetRecord(const DtNetSilentEntityList_RPR_20& record);
84  virtual void loadNetRecord(DtNetSilentEntityList& record) const;
85  virtual void loadNetRecord(DtNetSilentEntityList_RPR_20& record) const;
86 
89  virtual int networkByteLength(double rpr_version = 1.0) const;
90 
91 public:
92 
95  static int byteLengthOfNetworkRecord(
96  DtNetSilentEntityList* recPtr, double rprVersion = 1.0);
97 
98 protected:
99 
104 #if DtHLA
105  DtU32 myAppearance;
106 #else // DtDIS
108 #endif
109 
110 };

Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)