Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

NewSimulatorControl Class Reference

Abstract class for simulating controls. More...

#include <new_sim_control.h>

Inheritance diagram for NewSimulatorControl:

Inheritance graph
[legend]
Collaboration diagram for NewSimulatorControl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NewSimulatorControl (NewSimulatorResource *res, SaHpiRdrT rdr, SaHpiCtrlModeT ctrl_mode)
 Constructor.
virtual ~NewSimulatorControl ()
 Destructor.
virtual unsigned int Num () const
 sensor num, control num, fru device id
virtual bool CreateRdr (SaHpiRptEntryT &resource, SaHpiRdrT &rdr)
 A rdr structure is filled with the data.
virtual SaErrorT SetState (const SaHpiCtrlModeT &mode, const SaHpiCtrlStateT &state)=0
 abstract method for hpi function saHpiControlStateSet
virtual SaErrorT GetState (SaHpiCtrlModeT &mode, SaHpiCtrlStateT &state)=0
 abstract method for hpi function saHpiControlStateGet
virtual SaErrorT GetType (SaHpiCtrlTypeT &type)
 method for hpi function saHpiControlTypeGet
virtual void Dump (NewSimulatorLog &dump) const =0
 abstract method to dump control information

Protected Attributes

SaHpiCtrlNumT m_num
 rdr information - Num
SaHpiCtrlOutputTypeT m_output_type
 rdr information - Output Type
SaHpiCtrlTypeT m_type
 rdr information - Type
SaHpiCtrlDefaultModeT m_def_mode
 rdr information - Default Mode
SaHpiBoolT m_write_only
 rdr information - WriteOnly
SaHpiUint32T m_oem
 rdr information - Oem
SaHpiCtrlModeT m_ctrl_mode
 mode of the control

Detailed Description

Abstract class for simulating controls.


Member Function Documentation

bool NewSimulatorControl::CreateRdr SaHpiRptEntryT &  resource,
SaHpiRdrT &  rdr
[virtual]
 

A rdr structure is filled with the data.

This method is called by method NewSimulatorRdr::Populate().

Parameters:
resource Address of resource structure
rdr Address of rdr structure
Returns:
true

Reimplemented from NewSimulatorRdr.

Reimplemented in NewSimulatorControlAnalog, NewSimulatorControlDigital, NewSimulatorControlDiscrete, NewSimulatorControlOem, NewSimulatorControlStream, and NewSimulatorControlText.

SaErrorT NewSimulatorControl::GetType SaHpiCtrlTypeT &  type  )  [virtual]
 

method for hpi function saHpiControlTypeGet

See also the description of the function inside the specification or header file. Copying the internal reading values (if a read is allowed).

Parameters:
type address
Returns:
HPI return code


The documentation for this class was generated from the following files:
Generated on Mon Apr 26 14:39:01 2010 for New Simulator by  doxygen 1.4.4