![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2003 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: vlClock.h,v $ $Revision: 1.9 $ $State: Exp $ 00007 *******************************************************************************/ 00012 00015 00016 00017 #ifndef DtSimClock_H_ 00018 #define DtSimClock_H_ 00019 00020 #include <vlutil/vlTime.h> 00021 #include <vlutil/vlString.h> 00022 00023 class DtRwReal; 00024 00025 typedef DtRwReal DtRwTime; 00029 #include "vrfutil/vrfutilDefines.h" 00030 class DT_DLL_vrfutil DtSimClock : public DtClock 00031 { 00032 public: 00033 00034 DtSimClock(); 00035 DtSimClock(const DtSimClock &orig); 00036 DtSimClock & operator=(const DtSimClock &orig); 00037 virtual ~DtSimClock(); 00038 00040 static DtTime stringToSeconds(const DtString& timeString); 00041 00042 static DtString & secondsToElapsedTimeString(DtTime seconds, 00043 DtString &strBuffer); 00044 00045 static DtString & secondsToExerciseTimeString(DtTime seconds, 00046 DtString &strBuffer); 00047 00048 static void secondsToDaysHoursMinutesSeconds(DtTime secondsInput, int & days, 00049 int & hours, int & minutes, DtTime & seconds); 00050 00051 static DtTime daysHoursMinutesSecondsToSeconds(DtTime days, DtTime hours, 00052 DtTime minutes, DtTime seconds); 00053 00054 static bool processElapsedTimeString(const char *input, 00055 int& numDigitsFound, int& value1,int& value2,int& value3,int& value4); 00056 00057 }; 00058 00059 00060 00061 #endif 00062