Public Member Functions | Public Attributes

DevIO< T > Class Template Reference

#include <baciDevIO.h>

Inheritance diagram for DevIO< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DevIO ()
virtual ~DevIO ()
virtual bool initializeValue ()
virtual T read (ACS::Time &timestamp)
virtual void write (const T &value, ACS::Time &timestamp)

Public Attributes

bool m_initialize

Detailed Description

template<class T>
class DevIO< T >

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)

See also:
Baci

Constructor & Destructor Documentation

template<class T>
DevIO< T >::DevIO (  )  [inline]

Standard constructor

template<class T>
virtual DevIO< T >::~DevIO (  )  [inline, virtual]

Destructor


Member Function Documentation

template<class T>
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.

Returns:
bool - If true attempt to initialize the value at instanciation.

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 >.

template<class T>
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!

Parameters:
timestamp timestamp of reading
Exceptions:
any of ACS exceptions can be thrown
ACSErr::ACSbaseExImpl 
Returns:
read value

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 >.

template<class T>
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!

Parameters:
value value to be writen
timestamp timestamp of writing
Exceptions:
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 >.


Member Data Documentation

template<class T>
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().


The documentation for this class was generated from the following file: