Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions

baci::PcommonImpl< ACS_P_C > Class Template Reference

#include <baciPcommonImpl_T.h>

Inheritance diagram for baci::PcommonImpl< ACS_P_C >:
Inheritance graph
[legend]
Collaboration diagram for baci::PcommonImpl< ACS_P_C >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PcommonImpl (const ACE_CString &name, BACIComponent *component_p, DevIO< TM > *devIO, bool flagdeldevIO)
virtual ~PcommonImpl ()
virtual int initialization ()
CORBA::Object_ptr getCORBAReference () const
BACIPropertygetProperty () const
virtual void publishNow ()
virtual void destroy ()
DevIO< TM > * getDevIO () const
virtual ActionRequest getValueAction (BACIComponent *component_p, int callbackID, const CBDescIn &descIn, BACIValue *value, Completion &completion, CBDescOut &descOut)
virtual ActionRequest invokeAction (int function, BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, BACIValue *value, Completion &completion, CBDescOut &descOut)
virtual void getValue (BACIProperty *property, BACIValue *value, Completion &completion, CBDescOut &descOut)
virtual char * name ()
virtual char * characteristic_component_name ()
virtual CORBA::Boolean initialize_devio ()
virtual char * description ()
virtual char * format ()
virtual char * units ()
virtual ACS::pattern resolution ()
virtual ACS::TimeInterval default_timer_trigger ()
virtual ACS::TimeInterval min_timer_trigger ()
virtual TS default_value ()
virtual T get_sync (ACSErr::Completion_out c)
virtual void get_async (TCB *cb, const ACS::CBDescIn &desc)
virtual CORBA::Long get_history (CORBA::Long n_last_values, TSeq_out vs, ACS::TimeSeq_out ts)
virtual TMonitor * create_monitor (TCB *cb, const ACS::CBDescIn &desc)
virtual TMonitor * create_postponed_monitor (ACS::Time start_time, TCB *cb, const ACS::CBDescIn &desc)

Protected Types

typedef ActionRequest(PcommonImpl
< ACS_P_TL >::* 
ActionFunction )(BACIComponent *component_p, int callbackID, const CBDescIn &descIn, BACIValue *value, ACSErr::Completion &completion, CBDescOut &descOut)

Protected Member Functions

virtual bool readCharacteristics ()
void addValueToHistory (ACS::Time time, TM &value)

Protected Attributes

BACIPropertyproperty_mp
 BACI property.
DevIO< TM > * devIO_mp
bool deldevIO_m
TM value_m
int initialization_m
 Initialization status.
bool destroyed_m
 Destroy status.
CORBA::Object_ptr reference_mp
 CORBA reference.
TM historyValue_m [HISTORY_SIZE]
 history value buffer
ACS::Time historyTime_m [HISTORY_SIZE]
 history time buffer
int historyStart_m
 history start pointer
bool historyTurnaround_m
 history end pointer
bool initializeDevIO_m
ACE_CString description_m
ACE_CString format_m
ACE_CString units_m
ACS::pattern resolution_m
TSM defaultValue_m
ACS::TimeInterval defaultTimerTrig_m
ACS::TimeInterval minTimerTrig_m

Private Member Functions

void operator= (const PcommonImpl &)
 PcommonImpl (const PcommonImpl &)

Detailed Description

template<ACS_P_C>
class baci::PcommonImpl< ACS_P_C >

Implementation of P (common) property

Warning:
We have virtual inheritance from PortableServer::RefCountServantBase because of a bug in gcc 2.95 (see SPR. ALMASW2001075)

Constructor & Destructor Documentation

template<ACS_P_C >
baci::PcommonImpl< ACS_P_C >::PcommonImpl ( const ACE_CString &  name,
BACIComponent component_p,
DevIO< TM > *  devIO,
bool  flagdeldevIO 
)

Constuctor

Parameters:
name property name (e.q. AMSMount:decliantion)
component_p parent of the property
template<ACS_P_C >
virtual baci::PcommonImpl< ACS_P_C >::~PcommonImpl (  )  [virtual]

Destructor

template<ACS_P_C >
baci::PcommonImpl< ACS_P_C >::PcommonImpl ( const PcommonImpl< ACS_P_C > &   )  [private]

ALMA C++ coding standards state copy constructors should be disabled.


Member Function Documentation

template<ACS_P_C >
void baci::PcommonImpl< ACS_P_C >::addValueToHistory ( ACS::Time  time,
TM &  value 
) [protected]
template<ACS_P_C >
virtual char* baci::PcommonImpl< ACS_P_C >::characteristic_component_name (  )  [virtual]
template<ACS_P_C >
virtual TMonitor* baci::PcommonImpl< ACS_P_C >::create_monitor ( TCB *  cb,
const ACS::CBDescIn desc 
) [virtual]
template<ACS_P_C >
virtual TMonitor* baci::PcommonImpl< ACS_P_C >::create_postponed_monitor ( ACS::Time  start_time,
TCB *  cb,
const ACS::CBDescIn desc 
) [virtual]
template<ACS_P_C >
virtual ACS::TimeInterval baci::PcommonImpl< ACS_P_C >::default_timer_trigger (  )  [virtual]
template<ACS_P_C >
virtual TS baci::PcommonImpl< ACS_P_C >::default_value (  )  [virtual]
template<ACS_P_C >
virtual char* baci::PcommonImpl< ACS_P_C >::description (  )  [virtual]
template<ACS_P_C >
virtual void baci::PcommonImpl< ACS_P_C >::destroy (  )  [virtual]

Destructor method This method must be called to destroy property, POA will call destructor (direct call of destructor will most likely cause code to crash)

template<ACS_P_C >
virtual char* baci::PcommonImpl< ACS_P_C >::format (  )  [virtual]
template<ACS_P_C >
virtual void baci::PcommonImpl< ACS_P_C >::get_async ( TCB *  cb,
const ACS::CBDescIn desc 
) [virtual]
template<ACS_P_C >
virtual CORBA::Long baci::PcommonImpl< ACS_P_C >::get_history ( CORBA::Long  n_last_values,
TSeq_out  vs,
ACS::TimeSeq_out  ts 
) [virtual]
template<ACS_P_C >
virtual T baci::PcommonImpl< ACS_P_C >::get_sync ( ACSErr::Completion_out  c  )  [virtual]
template<ACS_P_C >
CORBA::Object_ptr baci::PcommonImpl< ACS_P_C >::getCORBAReference (  )  const [inline]

Get CORBA referece of this object

Returns:
reference to CORBa object
template<ACS_P_C >
DevIO<TM>* baci::PcommonImpl< ACS_P_C >::getDevIO (  )  const [inline]

DevIO accessor

template<ACS_P_C >
BACIProperty* baci::PcommonImpl< ACS_P_C >::getProperty (  )  const [inline]

BACI Monitor instance accessor

template<ACS_P_C >
virtual void baci::PcommonImpl< ACS_P_C >::getValue ( BACIProperty property,
BACIValue value,
Completion completion,
CBDescOut descOut 
) [virtual]

Get value method (value accessor)

Parameters:
property property which requested value
value value to be returned
completion error handling structure
descOut callback descriptor
template<ACS_P_C >
virtual ActionRequest baci::PcommonImpl< ACS_P_C >::getValueAction ( BACIComponent component_p,
int  callbackID,
const CBDescIn descIn,
BACIValue value,
Completion completion,
CBDescOut descOut 
) [virtual]
template<ACS_P_C >
virtual int baci::PcommonImpl< ACS_P_C >::initialization (  )  [inline, virtual]
template<ACS_P_C >
virtual CORBA::Boolean baci::PcommonImpl< ACS_P_C >::initialize_devio (  )  [virtual]
template<ACS_P_C >
virtual ActionRequest baci::PcommonImpl< ACS_P_C >::invokeAction ( int  function,
BACIComponent component_p,
const int &  callbackID,
const CBDescIn descIn,
BACIValue value,
Completion completion,
CBDescOut descOut 
) [virtual]

Action dispatcher function

Parameters:
function action funtion to be invoked
component_p owner of the action
callbackID id of the callback to be notified
descIn callback descriptor (passed by client)
value action data (e.g. value to be set)
completion error handing structure
descOut callback descriptor which will be passed to client
Returns:
request to be performed by BACI
  • reqNone - do nothing (action will be kept in queue)
  • reqInvokeWorking - invoke <type>Callback::working
  • reqInvokeDone - invoke <type>Callback::done and destroy callback
  • reqDestroy - destroy callback (callback should has been called already by function)

Implements baci::ActionImplementator.

Reimplemented in baci::RWcommonImpl< ACS_RW_C >, and baci::RWcommonImpl< ACS_RW_TL >.

template<ACS_P_C >
virtual ACS::TimeInterval baci::PcommonImpl< ACS_P_C >::min_timer_trigger (  )  [virtual]
template<ACS_P_C >
virtual char* baci::PcommonImpl< ACS_P_C >::name (  )  [virtual]
template<ACS_P_C >
void baci::PcommonImpl< ACS_P_C >::operator= ( const PcommonImpl< ACS_P_C > &   )  [private]

ALMA C++ coding standards state assignment operators should be disabled.

template<ACS_P_C >
virtual void baci::PcommonImpl< ACS_P_C >::publishNow (  )  [virtual]
template<ACS_P_C >
virtual bool baci::PcommonImpl< ACS_P_C >::readCharacteristics (  )  [protected, virtual]

Read characteristics from CDB

Parameters:
propertyName name of the property whose characteristics to read
Returns:
true on success, false on failure

Reimplemented in baci::ROcommonImpl< ACS_RO_C >, and baci::ROcommonImpl< ACS_RO_TL >.

template<ACS_P_C >
virtual ACS::pattern baci::PcommonImpl< ACS_P_C >::resolution (  )  [virtual]
template<ACS_P_C >
virtual char* baci::PcommonImpl< ACS_P_C >::units (  )  [virtual]

Member Data Documentation

template<ACS_P_C >
ACS::TimeInterval baci::PcommonImpl< ACS_P_C >::defaultTimerTrig_m [protected]
template<ACS_P_C >
TSM baci::PcommonImpl< ACS_P_C >::defaultValue_m [protected]
template<ACS_P_C >
bool baci::PcommonImpl< ACS_P_C >::deldevIO_m [protected]
template<ACS_P_C >
ACE_CString baci::PcommonImpl< ACS_P_C >::description_m [protected]
template<ACS_P_C >
bool baci::PcommonImpl< ACS_P_C >::destroyed_m [protected]

Destroy status.

template<ACS_P_C >
DevIO<TM>* baci::PcommonImpl< ACS_P_C >::devIO_mp [protected]
template<ACS_P_C >
ACE_CString baci::PcommonImpl< ACS_P_C >::format_m [protected]
template<ACS_P_C >
int baci::PcommonImpl< ACS_P_C >::historyStart_m [protected]

history start pointer

template<ACS_P_C >
ACS::Time baci::PcommonImpl< ACS_P_C >::historyTime_m[HISTORY_SIZE] [protected]

history time buffer

template<ACS_P_C >
bool baci::PcommonImpl< ACS_P_C >::historyTurnaround_m [protected]

history end pointer

template<ACS_P_C >
TM baci::PcommonImpl< ACS_P_C >::historyValue_m[HISTORY_SIZE] [protected]

history value buffer

template<ACS_P_C >
int baci::PcommonImpl< ACS_P_C >::initialization_m [protected]

Initialization status.

template<ACS_P_C >
bool baci::PcommonImpl< ACS_P_C >::initializeDevIO_m [protected]

Characteristics

template<ACS_P_C >
ACS::TimeInterval baci::PcommonImpl< ACS_P_C >::minTimerTrig_m [protected]
template<ACS_P_C >
BACIProperty* baci::PcommonImpl< ACS_P_C >::property_mp [protected]

BACI property.

template<ACS_P_C >
CORBA::Object_ptr baci::PcommonImpl< ACS_P_C >::reference_mp [protected]

CORBA reference.

template<ACS_P_C >
ACS::pattern baci::PcommonImpl< ACS_P_C >::resolution_m [protected]
template<ACS_P_C >
ACE_CString baci::PcommonImpl< ACS_P_C >::units_m [protected]
template<ACS_P_C >
TM baci::PcommonImpl< ACS_P_C >::value_m [protected]

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