Public Member Functions | Private Member Functions | Private Attributes

PowerSupplyCurrent Class Reference

#include <acsexmplPowerSupplyCurrentImpl.h>

Inheritance diagram for PowerSupplyCurrent:
Inheritance graph
[legend]
Collaboration diagram for PowerSupplyCurrent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PowerSupplyCurrent (const ACE_CString &name, baci::BACIComponent *component_p, baci::ROdouble *readback_p)
virtual void setValue (baci::BACIProperty *property_p, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)

Private Member Functions

void operator= (const PowerSupplyCurrent &)

Private Attributes

baci::ROdoublem_readback_p

Detailed Description

This class provides simulation of PowerSupply current/readback interraction. It extends the basic baci::BACI baci::RWdouble by accepting at construction time the reference to a baci::ROdouble that represents the actual readback value of the current. It overrides the setValue method so that it sets at the same time the value of the property itself AND the readback propery.

Author:
Matej Sekoranja, Jozef Stefan Institute, Slovenia
Version:
"@(#) $Id: acsexmplPowerSupplyCurrentImpl.h,v 1.88 2008/07/25 07:37:04 cparedes Exp $"

Constructor & Destructor Documentation

PowerSupplyCurrent::PowerSupplyCurrent ( const ACE_CString &  name,
baci::BACIComponent component_p,
baci::ROdouble readback_p 
)

Constuctor

Parameters:
name property name (e.q. PowerSupply:m_current_p) This is also the name that will be used to find the configuration data for the property in the Configuration Database.
component_p parent of the property
readback_p reference to the associated readback property

Member Function Documentation

void PowerSupplyCurrent::operator= ( const PowerSupplyCurrent  )  [private]

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

virtual void PowerSupplyCurrent::setValue ( baci::BACIProperty property_p,
baci::BACIValue value_p,
Completion completion,
CBDescOut descOut 
) [virtual]

Set value method (value mutator) We add this to override the setValue method inherited from baci::RWdouble. We do this to make the baci::RW property symetric to the baci::RO property passed to the constructor.

Parameters:
property_p property which requested value
value_p value to be returned
completion error handling structure
descOut callback descriptor

Reimplemented from baci::RWcontImpl< ACS_RW_C >.


Member Data Documentation

m_readback_p is never created in this class. It just points to the baci::ROdouble passed to this class's constructor. This is done so that we can synchronize this class and the baci::ROdouble's value.


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