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

NewSimulatorRdr Class Reference

Abstract class for rdr data. More...

#include <new_sim_rdr.h>

Inheritance diagram for NewSimulatorRdr:

Inheritance graph
[legend]
Collaboration diagram for NewSimulatorRdr:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NewSimulatorRdr (NewSimulatorResource *res, SaHpiRdrTypeT type)
 Constructor.
 NewSimulatorRdr (NewSimulatorResource *res, SaHpiRdrTypeT type, SaHpiEntityPathT entity, SaHpiBoolT isFru, SaHpiTextBufferT idString)
 Full qualified constructor.
virtual ~NewSimulatorRdr ()
 Destructor.
NewSimulatorResource *& Resource ()
 returns a reference of the resource reference from the class
SaHpiEntryIdT & RecordId ()
 returns a reference of the record id
SaHpiRdrTypeT & Type ()
 returns a reference of the rdr type
SaHpiBoolT & IsFru ()
 returns a reference of the isFru variable
NewSimulatorTextBufferIdString ()
 returns a reference of the idString
const NewSimulatorTextBufferIdString () const
 returns a reference of the idString
NewSimulatorEntityPathEntityPath ()
 returns a reference of theEntity Path
NewSimulatorDomainDomain ()
 Return a pointer on the own domain.
virtual bool CreateRdr (SaHpiRptEntryT &resource, SaHpiRdrT &rdr)
 create an RDR sensor record
virtual unsigned int Num () const =0
 sensor num, control num, fru device id
virtual void Dump (NewSimulatorLog &dump) const =0
 Dump the internal data.
virtual bool Populate (GSList **)
 Add the Rdr to the rptcache.

Protected Attributes

NewSimulatorResourcem_resource
 Holds a reference on the resource for which the rdr is defined.
SaHpiEntryIdT m_record_id
 id of the rdr entry
SaHpiRdrTypeT m_type
 type of the rdr entry
NewSimulatorEntityPath m_entity_path
 entity path where it can be found
SaHpiBoolT m_is_fru
 isFru flag - please see also specification about the usage of this flag
NewSimulatorTextBuffer m_id_string
 id string with the name of the entry

Detailed Description

Abstract class for rdr data.


Member Function Documentation

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

create an RDR sensor record

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

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

Reimplemented in NewSimulatorAnnunciator, NewSimulatorControl, NewSimulatorControlAnalog, NewSimulatorControlDigital, NewSimulatorControlDiscrete, NewSimulatorControlOem, NewSimulatorControlStream, NewSimulatorControlText, NewSimulatorDimi, NewSimulatorFumi, NewSimulatorInventory, NewSimulatorSensor, NewSimulatorSensorCommon, NewSimulatorSensorThreshold, and NewSimulatorWatchdog.

NewSimulatorDomain * NewSimulatorRdr::Domain  ) 
 

Return a pointer on the own domain.

Returns:
pointer on NewSimulatorDomain

bool NewSimulatorRdr::Populate GSList **  list  )  [virtual]
 

Add the Rdr to the rptcache.

In this function the object is added to the rptcache by calling oh_add_rdr and afterwards append on the given list.

Parameters:
list Pointer on GSList
Returns:
success


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