![]() |
VR-Link API Documentation for HLA 1.3
|
00001 /********************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *********************************************************************/ 00008 #pragma once 00009 00010 #include "vlTime.h" 00011 #include "vlTimeStampType.h" 00012 #include "vlNetTypes.h" 00013 00014 #ifdef DtUSE_UTILITIES_NAMESPACE 00015 namespace DtUSE_UTILITIES_NAMESPACE 00016 { 00017 #endif 00018 00019 00021 typedef DtU32 DtTimeStamp; 00022 00028 class DT_DLL_VLUTIL DtNetTimeStamp 00029 { 00030 public: 00031 00034 DtNetTimeStamp(); 00035 00038 DtNetTimeStamp(DtTime time, 00039 DtTimeStampType type = DtTimeStampRelative); 00040 00042 ~DtNetTimeStamp(); 00043 00045 DtNetTimeStamp(const DtNetTimeStamp& orig); 00046 00048 DtNetTimeStamp& operator=(const DtNetTimeStamp& orig); 00049 00053 operator DtU32 () const; 00054 00057 DtTime time() const; 00058 00061 void setTime(DtTime time); 00062 00064 void setType(DtTimeStampType type); 00065 DtTimeStampType type() const; 00066 00067 protected: 00068 00069 DtNetU32 myRep; 00070 00071 protected: 00072 00073 static const double theHourFracPerHour; 00074 static const double theHourPerHourFrac; 00075 }; 00076 00077 #ifdef DtUSE_UTILITIES_NAMESPACE 00078 } 00079 #endif 00080