![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: changeTimeOfDayCommand.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00013 00014 #ifndef changeTimeOfDayCommand_h 00015 #define changeTimeOfDayCommand_h 00016 00017 #include "vrfplan/simCommand.h" 00018 #include "vrfplan/vrfplanDefines.h" 00019 #include "vrfutil/rwReal.h" 00020 #include "vrfutil/rwBoolean.h" 00021 00024 class DT_DLL_vrfplan DtChangeTimeOfDayCommand : public DtSimCommand 00025 { 00026 public: 00027 00029 DtChangeTimeOfDayCommand(); 00030 00032 DtChangeTimeOfDayCommand(const DtString& writeName, 00033 DtReaderWriterRegistry* parentRegistry = NULL); 00034 00036 DtChangeTimeOfDayCommand(const DtString & writeName, const DtChangeTimeOfDayCommand& orig, 00037 DtReaderWriterRegistry* parentRegistry = NULL); 00038 00040 virtual ~DtChangeTimeOfDayCommand(); 00041 00043 DtChangeTimeOfDayCommand& operator=(const DtChangeTimeOfDayCommand& orig); 00044 00046 int type() const; 00047 00049 virtual DtSimCommand * clone(const DtString & name, DtReaderWriterRegistry * 00050 parentRegistry = 0) const; 00051 00052 virtual int netRepSize() const; 00053 virtual bool setFromNet(const char* contentBuffer, 00054 unsigned contentSize); 00055 virtual bool setToNet(); 00056 00058 00059 virtual void setTimeOfDay(double secondsPastMidnight); 00060 virtual double timeOfDay() const; 00062 00064 00065 virtual void setTimeOfDayAdvanceSpeed(double secondsPastMidnight); 00066 virtual double timeOfDayAdvanceSpeed() const; 00068 00071 virtual void setTimeOfDay(int hour, int minute, double seconds); 00072 00078 00079 virtual void setGeneratedByRemoteSetter(bool value); 00080 virtual bool generatedByRemoteSetter() const; 00082 00084 virtual DtString stringRep() const; 00085 00086 static DtSimCommand* creator(); 00087 00088 protected: 00089 00090 DtRwReal mySecondsPastMidnight; 00091 DtRwReal myToDAdvanceSpeed; 00092 DtRwBoolean myGeneratedByRemoteSetter; 00093 }; 00094 00095 00096 #endif