Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members

SystemInformation Class Reference

Class to abstract the way we gather the system information. More...

#include <SystemInformation.h>

Inheritance diagram for SystemInformation:

NsprSystemInformation ScriptSystemInformation List of all members.

Public Member Functions

virtual ~SystemInformation ()
std::map< const char *, const
char * > 
getSystemInformations ()
virtual std::string getInformation (std::string aKey)=0
virtual std::vector< std::string > availableInformations ()=0

Protected Member Functions

void addInformation (std::string aKey, std::string aValue)
virtual void updateInformations ()=0

Protected Attributes

std::map< const char *, const
char * > 
mSystemInformations

Detailed Description

Class to abstract the way we gather the system information.

Author:
Vincent JOUSSE
Version:
1.0


Constructor & Destructor Documentation

virtual SystemInformation::~SystemInformation  )  [inline, virtual]
 

Virtual destructor


Member Function Documentation

void SystemInformation::addInformation std::string  aKey,
std::string  aValue
[protected]
 

Just put a key/information pair into the map.

Parameters:
aKey A constant from the SystemInformation class (CPU_LOAD, CPU_TYPE, ...)
aValue The corresponding value

virtual std::vector<std::string> SystemInformation::availableInformations  )  [pure virtual]
 

Return the type of information we can gather with the class. Pure virtual, because each implementing class knows the kind of information it can gather

Implemented in NsprSystemInformation, and ScriptSystemInformation.

virtual std::string SystemInformation::getInformation std::string  aKey  )  [pure virtual]
 

The most important method. Used to gather information.

Implemented in NsprSystemInformation, and ScriptSystemInformation.

std::map<const char*,const char*> SystemInformation::getSystemInformations  ) 
 

Return all the available informations on the system.

Returns:
The map containing all the informations available

virtual void SystemInformation::updateInformations  )  [protected, pure virtual]
 

Update the informations available on the system. It will update the mSystemInformations map using the getInformation method. Called in getSystemInformations()

See also:
getInformation()


Member Data Documentation

std::map<const char*,const char*> SystemInformation::mSystemInformations [protected]
 

A map with all the informations.


The documentation for this class was generated from the following file:
Generated on Fri May 19 23:15:28 2006 for k10-agent by  doxygen 1.4.4