#include <new_sim_resource.h>
Inheritance diagram for NewSimulatorResource:


| Public Member Functions | |
| NewSimulatorRdr * | FindRdr (SaHpiRdrTypeT type, unsigned int num) | 
| Find a rdr entry with the correct type and number. | |
| bool | AddRdr (NewSimulatorRdr *rdr) | 
| Add a rdr entry. | |
| bool | RemRdr (NewSimulatorRdr *rdr) | 
| Remove a rdr entry. | |
| int | FindRdr (NewSimulatorRdr *rdr) | 
| Find a rdr object. | |
| int | NumRdr () | 
| Return the number of rdr entries. | |
| NewSimulatorRdr * | GetRdr (int idx) | 
| Get a rdr object by index. | |
| int | CreateSensorNum (SaHpiSensorNumT num) | 
| unsigned int | GetControlNum () | 
| get a unique control num for this resource | |
| NewSimulatorDomain * | Domain () const | 
| Return the domain to which the resource is mapped. | |
| unsigned int & | Oem () | 
| set/get oem value | |
| NewSimulatorEntityPath & | EntityPath () | 
| set/get EntityPath | |
| bool & | IsFru () | 
| set/get FRU flag | |
| NewSimulatorTextBuffer & | ResourceTag () | 
| set/get resource tag | |
| SaHpiHsStateT | HotSwapState () | 
| get hotswap state | |
| SaHpiPowerStateT & | PowerState () | 
| set/get power state | |
| SaHpiHsIndicatorStateT & | HSIndicator () | 
| set/get hotswap indicator state | |
| SaHpiResetActionT & | ResetState () | 
| set/get reset state | |
| SaHpiEntryIdT & | EntryId () | 
| set/get entry id | |
| SaHpiCapabilitiesT & | ResourceCapabilities () | 
| set/get resource capabilities | |
| SaHpiHsCapabilitiesT & | HotSwapCapabilities () | 
| set/get hotswap capabilities | |
| SaHpiResourceIdT | ResourceId () | 
| set/get resource id | |
| SaHpiSeverityT & | ResourceSeverity () | 
| set/get resource severity | |
| SaHpiBoolT & | ResourceFailed () | 
| set/get resource failed flag | |
| NewSimulatorResource (NewSimulatorDomain *domain) | |
| Constructor. | |
| virtual | ~NewSimulatorResource () | 
| Destructor. | |
| virtual bool | Destroy () | 
| Destroy the resource and clean up. | |
| void | Dump (NewSimulatorLog &dump) const | 
| Dump the information of the resource. | |
| SaErrorT | SetAutoExtractTimeout (SaHpiTimeoutT timeout) | 
| HPI Function implement in NewSimulatorHotSwap::SetExtractTimeout(). | |
| SaErrorT | GetAutoExtractTimeout (SaHpiTimeoutT &timeout) | 
| HPI Function implement in NewSimulatorHotSwap::GetExtractTimeout(). | |
| SaErrorT | RequestHotswapAction (SaHpiHsActionT action) | 
| HPI Function implement in NewSimulatorHotSwap::ActionRequest(). | |
| SaErrorT | GetHotswapState (SaHpiHsStateT &state) | 
| HPI Function implement in NewSimulatorHotSwap::GetState(). | |
| SaErrorT | SetStateActive () | 
| HPI Function implement in NewSimulatorHotSwap::SetActive(). | |
| SaErrorT | SetStateInactive () | 
| HPI Function implement in NewSimulatorHotSwap::SetInactive(). | |
| SaErrorT | HotswapPolicyCancel () | 
| HPI Function implement in NewSimulatorHotSwap::CancelPolicy(). | |
| void | SetResourceInfo (SaHpiResourceInfoT resinfo) | 
| Set the resource information. | |
| virtual bool | Create (SaHpiRptEntryT &entry) | 
| Initialize a new resource. | |
| virtual bool | Populate () | 
| Popolate the resource. | |
| Protected Attributes | |
| NewSimulatorDomain * | m_domain | 
| pointer on the domain | |
| NewSimulatorHotSwap | m_hotswap | 
| hotswap state of the FRU | |
| NewSimulatorEntityPath | m_entity_path | 
| entity path of the resource | |
| bool | m_is_fru | 
| is the resource a FRU or not | |
| unsigned int | m_oem | 
| oem value | |
| int | m_sensor_num [256] | 
| mapping of sensor numbers - obsolet? | |
| SaHpiRptEntryT | m_rpt_entry | 
| rpt entry values | |
| NewSimulatorTextBuffer | m_resource_tag | 
| resource tag | |
| unsigned int | m_current_control_id | 
| highest control id | |
| SaHpiPowerStateT | m_power_state | 
| power state | |
| SaHpiHsIndicatorStateT | m_hotswap_indicator | 
| indicator state | |
| SaHpiResetActionT | m_reset_state | 
| reset action | |
| 
 | 
| Add a rdr entry. 
 
 
 | 
| 
 | 
| Initialize a new resource. 
 
 
 | 
| 
 | 
| 
 
 
 
 | 
| 
 | 
| Destroy the resource and clean up. 
 
 | 
| 
 | 
| Return the domain to which the resource is mapped. 
 
 | 
| 
 | 
| Dump the information of the resource. 
 
 | 
| 
 | ||||||||||||
| Find a rdr entry with the correct type and number. 
 
 
 | 
| 
 | 
| Popolate the resource. 
 
 | 
| 
 | 
| Remove a rdr entry. 
 
 
 | 
| 
 | 
| Set the resource information. 
 
 | 
 1.4.4
 1.4.4