![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2009 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtInterestManagementRecord.h,v $ $Revision: 1.7 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #ifndef DtInterestManagementRecord_H_ 00014 #define DtInterestManagementRecord_H_ 00015 00016 #include <makArchives/makArchives.h> 00017 00018 namespace makArchives 00019 { 00022 class DT_DLL_MAKARCHIVES DtInterestManagementRecord 00023 { 00024 public: 00026 DtInterestManagementRecord(); 00027 00029 DtInterestManagementRecord(const DtInterestManagementRecord& orig); 00030 00032 DtInterestManagementRecord& operator=(const DtInterestManagementRecord& orig); 00033 00035 ~DtInterestManagementRecord(); 00036 00037 void setDdmRegionSize(int size); 00038 int ddmRegionSize() const; 00039 00040 void setRegionUpdateThreshold(int percentage); 00041 int regionUpdateThreshold() const; 00042 00043 void setAltitudeThresholdEnabled(bool enabled); 00044 bool altitudeThresholdEnabled() const; 00045 00046 void setAltitudeThreshold(int threshold); 00047 int altitudeThreshold() const; 00048 protected: 00049 00050 friend class boost::serialization::access; 00051 00055 template<class Archive> 00056 void serialize(Archive & ar, const unsigned int version) 00057 { 00058 ar & BOOST_SERIALIZATION_NVP(myDdmRegionSize); 00059 ar & BOOST_SERIALIZATION_NVP(myRegionUpdateThreshold); 00060 ar & BOOST_SERIALIZATION_NVP(myAltitudeThresholdEnabled); 00061 ar & BOOST_SERIALIZATION_NVP(myAltitudeThreshold); 00062 } 00063 00064 int myDdmRegionSize; 00065 int myRegionUpdateThreshold; 00066 bool myAltitudeThresholdEnabled; 00067 int myAltitudeThreshold; 00068 }; 00069 } 00070 00071 #endif 00072