![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 2000 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: rwClockTime.h,v $ $Revision: 1.7 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef DtRwClockTime_H_ 00013 #define DtRwClockTime_H_ 00014 00015 #include "vrfutil/rdrWritr.h" 00016 00020 00021 #include "vrfutil/vrfutilDefines.h" 00022 class DT_DLL_vrfutil DtRwClockTime : public DtReaderWriter 00023 { 00024 public: 00025 00027 DtRwClockTime(); 00028 00030 DtRwClockTime(const DtString& name, 00031 DtReaderWriterRegistry* const parentRegistry = NULL); 00032 00033 DtRwClockTime(const DtSymbolString& name, 00034 DtReaderWriterRegistry* const parentRegistry = NULL); 00035 00037 DtRwClockTime(const DtString& name, int days, int hours, int minutes, 00038 double seconds, DtReaderWriterRegistry* const parentRegistry = NULL); 00039 00040 DtRwClockTime(const DtSymbolString& name, int days, int hours, int minutes, 00041 double seconds, DtReaderWriterRegistry* const parentRegistry = NULL); 00042 00044 virtual ~DtRwClockTime(); 00045 00047 DtRwClockTime(const DtRwClockTime& orig); 00048 00050 DtRwClockTime& operator=(const DtRwClockTime& orig); 00051 00053 virtual void setDays(int days); 00054 virtual int days() const; 00055 00057 virtual void setHours(int hours); 00058 virtual int hours() const; 00059 00061 virtual void setMinutes(int minutes); 00062 virtual int minutes() const; 00063 00065 virtual void setSeconds(double seconds); 00066 virtual double seconds() const; 00067 00070 virtual double timeInSeconds() const; 00071 00072 virtual void putData(FILE* fp, int indentLevel = 0); 00073 virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath, 00074 const DtVariableBindingsList& variableBindings); 00075 00079 virtual const char* readerWriterType() const; 00080 00081 protected: 00082 00083 int myDays; 00084 int myHours; 00085 int myMinutes; 00086 double mySeconds; 00087 }; 00088 00089 #endif