Go to the documentation of this file.00001 #ifndef acsexmplLongDevIO_h
00002 #define acsexmplLongDevIO_h
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef __cplusplus
00028 #error This is a C++ include file and cannot be used from plain C
00029 #endif
00030
00032 #include <baciDevIO.h>
00033 #include <iostream>
00034
00035 class TestDevIO : public DevIO<CORBA::Double>
00036 {
00037
00038 public:
00039
00040 double m_value;
00041 TestDevIO() {m_value=-1;};
00042 virtual ~TestDevIO() {};
00043
00044
00048 virtual CORBA::Double
00049 read(ACS::Time& timestamp)
00050 {
00051 timestamp = getTimeStamp();
00052 std::cout << "TestDevIO::read(...) - the value is:" << m_value << std::endl;
00053 return 1;
00054 }
00055
00059 virtual void
00060 write(const CORBA::Double &value, ACS::Time& timestamp)
00061 {
00062 timestamp = getTimeStamp();
00063 std::cout << "TestDevIO::write(...) - the value before is:" << m_value << std::endl;
00064 m_value = value;
00065 std::cout << " - the value after is:" << value <<" - " <<m_value << std::endl;
00066 }
00067 };
00068 #endif
00069
00070