#include <baciDevIO.h>
Public Member Functions | |
DevIO () | |
virtual | ~DevIO () |
virtual bool | initializeValue () |
virtual T | read (ACS::Time ×tamp) |
virtual void | write (const T &value, ACS::Time ×tamp) |
Public Attributes | |
bool | m_initialize |
Device I/O implementation class. This class is a base class for providing input/output implementations to the Property class. (copied from ticsDevIO and converted into abstract class)
virtual bool DevIO< T >::initializeValue | ( | ) | [inline, virtual] |
The return value of initializeValue function tells the constructor of property if it has to set initial value of DevIO to default value or not. The default value of property is read from CDB. InitializeValue: If true ACS will try to automatically set the value upon initialization.
Reimplemented in LongDevIO, DevIOTime, DevIOMem< T >, TMCDB::MCtestDevIO< T >, TMCDB::MCtestDevIOSeq< T >, TMCDB::MCtestDevIONoIncremental< T >, TMCDB::MCtestDevIOSeqNoIncremental< T >, TMCDB::MCtestDevIO< double >, and TMCDB::MCtestDevIOSeq< ACS::doubleSeq >.
virtual T DevIO< T >::read | ( | ACS::Time & | timestamp | ) | [inline, virtual] |
Method to read a value. It has to be override by implementation of DevIO. If the method is not overriden, and it is called than ACSErrTypeCommon::NotImplementedExImpl exception is thrown!
timestamp | timestamp of reading |
any | of ACS exceptions can be thrown | |
ACSErr::ACSbaseExImpl |
Reimplemented in CosDevIO, SinDevIO, DevIOTime, DevIOMem< T >, TestDevIO, TestErrorDevIO, TMCDB::MCtestDevIO< T >, TMCDB::MCtestDevIOSeq< T >, TMCDB::MCtestDevIONoIncremental< T >, TMCDB::MCtestDevIOSeqNoIncremental< T >, TMCDB::MCtestDevIO< double >, and TMCDB::MCtestDevIOSeq< ACS::doubleSeq >.
virtual void DevIO< T >::write | ( | const T & | value, | |
ACS::Time & | timestamp | |||
) | [inline, virtual] |
Method to write a value. It has to be override by implementation of DevIO If the method is not overriden, and it is called than ACSErrTypeCommon::NotImplementedExImpl exception is thrown!
value | value to be writen | |
timestamp | timestamp of writing |
any | of ACS exceptions can be thrown | |
ACSErr::ACSbaseExImpl |
Reimplemented in DevIOTime, DevIOMem< T >, TestDevIO, TestErrorDevIO, TMCDB::MCtestDevIO< T >, TMCDB::MCtestDevIOSeq< T >, TMCDB::MCtestDevIONoIncremental< T >, TMCDB::MCtestDevIOSeqNoIncremental< T >, TMCDB::MCtestDevIO< double >, and TMCDB::MCtestDevIOSeq< ACS::doubleSeq >.
bool DevIO< T >::m_initialize |
If true attempt to initialize the value at instanciation. The value is set by the attribute in the CDB, by default this is false.
Referenced by DevIO< ACE_CString >::DevIO(), and DevIO< ACE_CString >::initializeValue().