DevIO

NAME
SYNOPSIS
Detailed Description
Constructor & Destructor Documentation
Member Function Documentation
Member Data Documentation
Author

NAME

DevIO −

SYNOPSIS

#include <baciDevIO.h>

Inherited by DevIOMem< T >, TMCDB::MCtestDevIO< T >, TMCDB::MCtestDevIONoIncremental< T >, TMCDB::MCtestDevIOSeq< T >, and TMCDB::MCtestDevIOSeqNoIncremental< T >.

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 >, TMCDB::MCtestDevIO< ACS::pattern >, TMCDB::MCtestDevIO< int >, TMCDB::MCtestDevIOSeq< ACS::doubleSeq >, and TMCDB::MCtestDevIOSeq< ACS::longSeq >.

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 >, TMCDB::MCtestDevIO< ACS::pattern >, TMCDB::MCtestDevIO< int >, TMCDB::MCtestDevIOSeq< ACS::doubleSeq >, and TMCDB::MCtestDevIOSeq< ACS::longSeq >.

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 >, TMCDB::MCtestDevIO< ACS::pattern >, TMCDB::MCtestDevIO< int >, TMCDB::MCtestDevIOSeq< ACS::doubleSeq >, and TMCDB::MCtestDevIOSeq< ACS::longSeq >.

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< ACS::booleanSeq >::DevIO(), and DevIO< ACS::booleanSeq >::initializeValue().

Author

Generated automatically by Doxygen for ACS-2015.2 C++ API from the source code.