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

resourceInfo Class Reference

#include <rmSysInfo.h>

Inheritance diagram for resourceInfo:

rmBaseArray< ResourceInfo > IBaseAccessor List of all members.

Public Methods

 resourceInfo ()
virtual ~resourceInfo ()
int init (subsystemInfo *aSubsystemInfo, statisticInfo *aStatisticInfo)
virtual int getUUIDString (RMAttribute aName, unsigned long aID, char *aUUIDStr)
virtual int getUUID (RMAttribute aName, unsigned long aID, uuid_t aUUID)
virtual int getUnsigned (RMAttribute aName, unsigned long aID, unsigned long &aValue)
virtual int getString (RMAttribute aName, unsigned long aID, char *&aBuf)
virtual int addResource (const uuid_t aUUID, unsigned long aID)
virtual int removeResource (const uuid_t aUUID, unsigned long aID)
int initResourceInfoBySubsystemID (unsigned long aID, bool initStatistics=false)

Private Attributes

subsystemInfomSubsystemInfo
statisticInfomStatisticInfo

Detailed Description

resourceInfo class.

This is the class that manages all the resoruce info.

This class implements the IBaseArray interface by inheriting from rmBaseArray<ResourceInfo> template class.

Definition at line 87 of file rmSysInfo.h.


Constructor & Destructor Documentation

resourceInfo::resourceInfo   [inline]
 

Definition at line 90 of file rmSysInfo.h.

virtual resourceInfo::~resourceInfo   [inline, virtual]
 

Definition at line 91 of file rmSysInfo.h.


Member Function Documentation

int resourceInfo::addResource const uuid_t    aUUID,
unsigned long    aID
[virtual]
 

Definition at line 445 of file rmSysInfo.cpp.

References subsystemInfo::getSubsystemIDByUUID, ResourceInfo::info, statisticInfo::initStatisticInfoByResourceID, mStatisticInfo, mSubsystemInfo, rmBaseArray< ResourceInfo >::newElement, RMCLIENT_ERROR_RESOURCE_INFO, RMCLIENT_ERROR_SUBSYSTEM_ID, and ResourceInfo::subsystemId.

Referenced by rmEvent::processSystemEvent.

int resourceInfo::getString RMAttribute    aName,
unsigned long    aID,
char *&    aBuf
[virtual]
 

Reimplemented from rmBaseArray< ResourceInfo >.

Definition at line 410 of file rmSysInfo.cpp.

References rmBaseArray< ResourceInfo >::getConstElement, ResourceInfo::info, RESORUCEINFO_NAME, RESOURCEINFO_DESCRIPTION, RMAttribute, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_RESOURCE_STRING, RMCLIENT_ERROR_SUBSYSTEM_INFO, and RMCLIENT_SUCCESS.

int resourceInfo::getUnsigned RMAttribute    aName,
unsigned long    aID,
unsigned long &    aValue
[virtual]
 

Reimplemented from rmBaseArray< ResourceInfo >.

Definition at line 385 of file rmSysInfo.cpp.

References rmBaseArray< ResourceInfo >::getConstElement, ResourceInfo::info, RESOURCEINFO_RESOURCEID, RESOURCEINFO_SUBSYSTEMID, RMAttribute, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_RESOURCE_INFO, RMCLIENT_SUCCESS, and ResourceInfo::subsystemId.

Referenced by statisticInfo::initStatisticInfoByResourceID.

int resourceInfo::getUUID RMAttribute    aName,
unsigned long    aID,
uuid_t    aUUID
[virtual]
 

Reimplemented from rmBaseArray< ResourceInfo >.

Definition at line 361 of file rmSysInfo.cpp.

References rmBaseArray< ResourceInfo >::getConstElement, ResourceInfo::info, RESOURCEINFO_SUBSYSTEMUUID, RMAttribute, RMCLIENT_ERROR_BAD_POINTER, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_RESOURCE_INFO, and RMCLIENT_SUCCESS.

int resourceInfo::getUUIDString RMAttribute    aName,
unsigned long    aID,
char *    aUUIDStr
[virtual]
 

Reimplemented from rmBaseArray< ResourceInfo >.

Definition at line 335 of file rmSysInfo.cpp.

References rmBaseArray< ResourceInfo >::getConstElement, ResourceInfo::info, RESOURCEINFO_SUBSYSTEMUUID, RMAttribute, RMCLIENT_ERROR_BAD_POINTER, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_RESOURCE_INFO, and RMCLIENT_SUCCESS.

int resourceInfo::init subsystemInfo   aSubsystemInfo,
statisticInfo   aStatisticInfo
 

Initializes the resource info.

This class contains pointers to subsystemInfo and statisticInfo also.

Parameters:
aResourceInfo  resourceInfo object.
aStatisticInfo  statisticInfo object.
Returns:
RMCLIENT_SUCCESS or other error numbers.

Definition at line 267 of file rmSysInfo.cpp.

References rmBaseArray< SubsystemInfo >::getNextId, initResourceInfoBySubsystemID, mStatisticInfo, mSubsystemInfo, and RMCLIENT_SUCCESS.

Referenced by rmClient::init.

int resourceInfo::initResourceInfoBySubsystemID unsigned long    aID,
bool    initStatistics = false
 

Definition at line 287 of file rmSysInfo.cpp.

References rmBaseArray< SubsystemInfo >::getConstElement, ResourceInfo::info, SubsystemInfo::info, statisticInfo::initStatisticInfoByResourceID, mStatisticInfo, mSubsystemInfo, rmBaseArray< ResourceInfo >::newElement, RMCLIENT_ERROR_MEMORY, RMCLIENT_ERROR_RESOURCE_INFO, RMCLIENT_ERROR_SUBSYSTEM_INFO, RMCLIENT_SUCCESS, and ResourceInfo::subsystemId.

Referenced by subsystemInfo::addSubsystemByUUID, and init.

int resourceInfo::removeResource const uuid_t    aUUID,
unsigned long    aID
[virtual]
 

Definition at line 475 of file rmSysInfo.cpp.

References rmBaseArray< StatisticInfo >::getConstElement, rmBaseArray< ResourceInfo >::getConstElement, rmBaseArray< StatisticInfo >::getNextId, rmBaseArray< ResourceInfo >::getNextId, subsystemInfo::getSubsystemIDByUUID, ResourceInfo::info, mStatisticInfo, mSubsystemInfo, rmBaseArray< ResourceInfo >::removeElement, rmBaseArray< StatisticInfo >::removeElement, StatisticInfo::resourceId, RMCLIENT_ERROR_RESOURCE_ID, RMCLIENT_ERROR_STATISTIC_ID, RMCLIENT_ERROR_SUBSYSTEM_ID, StatisticInfo::subsystemId, and ResourceInfo::subsystemId.

Referenced by rmEvent::processSystemEvent.


Member Data Documentation

statisticInfo* resourceInfo::mStatisticInfo [private]
 

Definition at line 109 of file rmSysInfo.h.

Referenced by addResource, init, initResourceInfoBySubsystemID, and removeResource.

subsystemInfo* resourceInfo::mSubsystemInfo [private]
 

Definition at line 108 of file rmSysInfo.h.

Referenced by addResource, init, initResourceInfoBySubsystemID, and removeResource.


The documentation for this class was generated from the following files:
Generated on Tue Sep 10 16:46:34 2002 for ResourceMonitorSNMPSubagent by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002