#include <baciPcommonImpl_T.h>
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 |
| BACIProperty * | getProperty () 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 |
| BACIProperty * | property_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
Constuctor
- Parameters:
-
| name | property name (e.q. AMSMount:decliantion) |
| component_p | parent of the property |
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 ACS::TimeInterval baci::PcommonImpl< ACS_P_C >::default_timer_trigger |
( |
|
) |
[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 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] |
Get CORBA referece of this object
- Returns:
- reference to CORBa object
Get value method (value accessor)
- Parameters:
-
| property | property which requested value |
| value | value to be returned |
| completion | error handling structure |
| descOut | callback descriptor |
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] |
ALMA C++ coding standards state assignment operators should be disabled.
template<ACS_P_C >
| virtual bool baci::PcommonImpl< ACS_P_C >::readCharacteristics |
( |
|
) |
[protected, virtual] |
Member Data Documentation
The documentation for this class was generated from the following file: