![]() |
VR-Link API Documentation for HLA 1.3
|
00001 /********************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 00006 #ifndef DtSilentEntityList_H_ 00007 #define DtSilentEntityList_H_ 00008 00013 00014 #include <vlutil/vlMachineTypes.h> 00015 #include <vlpi/disEnums.h> 00016 #include "hostStructs.h" 00017 #include <iosfwd> 00018 #include "packets/aggStateP.h" 00019 00023 class DT_DLL_VL DtSilentEntityList 00024 { 00025 00026 public: 00027 00029 DtSilentEntityList(); 00030 DtSilentEntityList(const DtSilentEntityList& orig); 00031 00033 virtual ~DtSilentEntityList(); 00034 00036 DtSilentEntityList& operator=(const DtSilentEntityList& orig); 00037 DtSilentEntityList& operator=(const DtNetSilentEntityList& orig); 00038 00040 int operator==(const DtSilentEntityList& otherguy) const; 00041 int operator!=(const DtSilentEntityList& otherguy) const; 00042 00044 virtual void setNumberOfEntities(const DtU16 value); 00045 virtual DtU16 numberOfEntities() const; 00046 00048 virtual void setEntityType(const DtEntityType& type); 00049 virtual const DtEntityType& entityType() const; 00050 00053 virtual bool setNumberOfAppearanceRecords(const DtU16 value); 00054 virtual DtU16 numberOfAppearanceRecords() const; 00055 00056 #if DtHLA 00057 00059 virtual void setAppearance(DtU32 app); 00060 virtual DtU32 appearance() const; 00061 00062 #endif 00063 #if (DtDIS || DtTENA) 00064 00065 00066 00067 virtual bool setAppearance(int index, DtU32 app); 00068 virtual bool getAppearance(int index, DtU32& app) const; 00069 00072 virtual bool setAppearanceAttribute(int index, 00073 const DtAppearAttribute attr, const DtAppearAttrVal val); 00074 virtual bool getAppearanceAttribute(int index, 00075 const DtAppearAttribute attr, DtAppearAttrVal& val) const; 00076 #endif 00077 00079 virtual void printData() const; 00080 00081 virtual void printDataToStream(std::ostream &stream) const; 00082 00084 virtual void unloadNetRecord(const DtNetSilentEntityList& record); 00085 virtual void unloadNetRecord(const DtNetSilentEntityList_RPR_20& record); 00086 virtual void loadNetRecord(DtNetSilentEntityList& record) const; 00087 virtual void loadNetRecord(DtNetSilentEntityList_RPR_20& record) const; 00088 00091 virtual int networkByteLength(double rpr_version = 1.0) const; 00092 00093 00094 public: 00095 00098 static int byteLengthOfNetworkRecord( 00099 DtNetSilentEntityList* recPtr, double rprVersion = 1.0); 00100 00101 00102 protected: 00103 00105 DtU16 myNumberOfEntities; 00106 DtEntityType myEntityType; 00107 DtU16 myNumberOfAppearanceRecords; 00108 #if (DtDIS || DtTENA) 00109 DtU32* myEntityAppearanceList; 00110 #else 00111 DtU32 myAppearance; 00112 #endif 00113 }; 00114 00115 #endif 00116