![]() |
VR-Link API Documentation for HLA 1516
|
00001 /********************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 00008 00009 #ifndef DtStateRepository_H_ 00010 #define DtStateRepository_H_ 00011 00012 #include <vlutil/vlMachineTypes.h> 00013 00014 #include "hostStructs.h" 00015 #include "objectId.h" 00016 #include <iosfwd> 00017 00022 class DT_DLL_VL DtStateRepository 00023 { 00024 public: 00025 00027 virtual ~DtStateRepository(); 00028 00030 DtStateRepository& operator=(const DtStateRepository& orig); 00031 00033 virtual DtStateRepository* clone(bool copy = false) const = 0; 00034 00036 virtual void printData() const = 0; 00037 00039 virtual void printDataToStream(std::ostream& stream) const; 00040 00043 virtual void setGlobalId(const DtGlobalObjectDesignator& id); 00044 virtual const DtGlobalObjectDesignator& globalId() const; 00045 00046 #if DtHLA 00047 00050 virtual void setLocalId(const DtObjectId& id); 00051 virtual const DtObjectId& localId() const; 00052 00053 #endif 00054 00055 protected: 00056 00058 00060 DtStateRepository(); 00061 00063 DtStateRepository(const DtStateRepository& orig); 00064 00065 DtGlobalObjectDesignator myGlobalId; 00066 00067 #if DtHLA 00068 DtObjectId myLocalId; 00069 #endif 00070 00071 }; 00072 00073 DT_DLL_VL std::ostream & operator << (std::ostream &str, const DtStateRepository &sr); 00074 00075 #endif 00076