Go to the documentation of this file.00001 #ifndef ACSTIME_DEVIO_TIME_H
00002 #define ACSTIME_DEVIO_TIME_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __cplusplus
00024 #error This is a C++ include file and cannot be used from plain C
00025 #endif
00026
00027 #include <baciDevIO.h>
00028 #include "acstimeTimeUtil.h"
00031
00046 class DevIOTime : public DevIO<ACS::Time>
00047 {
00048 public:
00052 DevIOTime() {}
00053
00057 virtual ~DevIOTime() {}
00058
00065 virtual bool
00066 initializeValue() {return true;}
00067
00078 virtual ACS::Time
00079 read(ACS::Time ×tamp)
00080 {
00081 timestamp = getTimeStamp();
00082
00083 acstime::Epoch retValue = TimeUtil::ace2epoch(ACE_OS::gettimeofday());
00084 return (ACS::Time)retValue.value;
00085 }
00086
00095 virtual void
00096 write(const ACS::Time &value, ACS::Time ×tamp)
00097 {
00098 ACE_UNUSED_ARG(value);
00099 timestamp = getTimeStamp();
00100 }
00101 };
00102 #endif
00103