#include <rmSysInfo.h>
Inheritance diagram for resourceInfo:
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 | |
subsystemInfo * | mSubsystemInfo |
statisticInfo * | mStatisticInfo |
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.
|
Definition at line 90 of file rmSysInfo.h. |
|
Definition at line 91 of file rmSysInfo.h. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
Initializes the resource info. This class contains pointers to subsystemInfo and statisticInfo also.
Definition at line 267 of file rmSysInfo.cpp. References rmBaseArray< SubsystemInfo >::getNextId, initResourceInfoBySubsystemID, mStatisticInfo, mSubsystemInfo, and RMCLIENT_SUCCESS. Referenced by rmClient::init. |
|
|
|
Definition at line 109 of file rmSysInfo.h. Referenced by addResource, init, initResourceInfoBySubsystemID, and removeResource. |
|
Definition at line 108 of file rmSysInfo.h. Referenced by addResource, init, initResourceInfoBySubsystemID, and removeResource. |