Public Member Functions | Protected Attributes

TMCDB::MCtestDevIOSeq< T > Class Template Reference

#include <MCtestDevIO.h>

Inheritance diagram for TMCDB::MCtestDevIOSeq< T >:
Inheritance graph
[legend]
Collaboration diagram for TMCDB::MCtestDevIOSeq< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Protected Attributes

value_m
ACS::Time & timestamp_m

template<class T>
class TMCDB::MCtestDevIOSeq< T >


Constructor & Destructor Documentation

template<class T>
TMCDB::MCtestDevIOSeq< T >::MCtestDevIOSeq ( T &  value,
ACS::Time &  timestamp 
) [inline]

Constructor that accepts a reference to an object of any type using templates.

Parameters:
value templated reference to the allocated memory to be used for the data
init timestamp Constructor that accepts a reference to an object of any type using templates.
value templated reference to the allocated memory to be used for the data
init timestamp
template<class T>
virtual TMCDB::MCtestDevIOSeq< T >::~MCtestDevIOSeq (  )  [inline, virtual]

Member Function Documentation

template<class T>
virtual bool TMCDB::MCtestDevIOSeq< 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 from DevIO< T >.

template<class T>
T TMCDB::MCtestDevIOSeq< 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 from DevIO< T >.

template<class T>
virtual void TMCDB::MCtestDevIOSeq< 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 from DevIO< T >.


Member Data Documentation

template<class T>
ACS::Time& TMCDB::MCtestDevIOSeq< T >::timestamp_m [protected]
template<class T>
T TMCDB::MCtestDevIOSeq< T >::value_m [protected]

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