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

NewSimulatorSensorCommon Class Reference

Class for simulating common sensors. More...

#include <new_sim_sensor_common.h>

Inheritance diagram for NewSimulatorSensorCommon:

Inheritance graph
[legend]
Collaboration diagram for NewSimulatorSensorCommon:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NewSimulatorSensorCommon (NewSimulatorResource *res)
 Constructor.
 NewSimulatorSensorCommon (NewSimulatorResource *res, SaHpiRdrT rdr, SaHpiSensorReadingT data, SaHpiEventStateT event_state, SaHpiEventStateT event_amask, SaHpiEventStateT event_dmask, SaHpiBoolT enabled, SaHpiBoolT event_enabled)
 Fully qualified constructor to fill an object with the parsed data.
virtual ~NewSimulatorSensorCommon ()
 Destructor.
virtual bool CreateRdr (SaHpiRptEntryT &resource, SaHpiRdrT &rdr)
 A rdr structure is filled with the internally data.
virtual SaErrorT GetSensorReading (SaHpiSensorReadingT &data, SaHpiEventStateT &state)
 HPI function saHpiSensorReadingGet().
virtual void Dump (NewSimulatorLog &dump) const
 Dump the sensor information.

Detailed Description

Class for simulating common sensors.


Member Function Documentation

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

A rdr structure is filled with the internally data.

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

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

Reimplemented from NewSimulatorSensor.

void NewSimulatorSensorCommon::Dump NewSimulatorLog dump  )  const [virtual]
 

Dump the sensor information.

Parameters:
dump Address of the log

Reimplemented from NewSimulatorSensor.

SaErrorT NewSimulatorSensorCommon::GetSensorReading SaHpiSensorReadingT &  data,
SaHpiEventStateT &  state
[virtual]
 

HPI function saHpiSensorReadingGet().

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

Parameters:
data sensor reading variable in which the data should be copied
state sensor event state variable in which the states should be copied
Returns:
error code

Implements NewSimulatorSensor.


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