SaX::SaXImportSysp Class Reference

SaX2 - Import SYSP class. More...

#include <import.h>

Inheritance diagram for SaX::SaXImportSysp:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void doImport (void)
int getSectionID (void)
QString getSectionName (void)
 SaXImportSysp (int)

Detailed Description

SaX2 - Import SYSP class.

The SaXImportSysp class provides an abstraction for the Sysp interface layer. The class inherits from SaXProcess which itself inherits from SaXStorage. the data is obtained from a sysp process call and is stored into the protected area of a storage object. sysp is the system profiler used with SaX2. The system profiler provides information about the hardware only. Stuff like PCI ID's, card memory, etc. is handled within Sysp. Sysp is a read only interface and according to this the class SaXImportSysp can only be used to obtain information. A SaXImportSysp object will be constructed with one parameter which defines the section to import. there are five SYSP sections available:

Example:

 #include <sax/sax.h>

 SaXImportSysp* card = new SaXImportSysp (SYSP_CARD);
 card->doImport();

 if (card->getItem("VID")) {
     printf ("%s\n",card->getItem("VID").ascii());
 }

Definition at line 220 of file import.h.


Constructor & Destructor Documentation

SaX::SaXImportSysp::SaXImportSysp int  section  ) 
 

An object of this type is used to create a SYSP based SaX import. Refering to the given section ID the correct sysp.pl options are set.

Definition at line 121 of file import.cpp.

References SaX::SaXException::errorString(), and SaX::SaXException::excImportSectionFailed().

Here is the call graph for this function:


Member Function Documentation

void SaX::SaXImportSysp::doImport void   )  [virtual]
 

call SaXProcess::start() to obtain the sysp provided information

Implements SaX::SaXImportSyspIF.

Definition at line 161 of file import.cpp.

References SaX::SaXProcess::start().

Here is the call graph for this function:

int SaX::SaXImportSysp::getSectionID void   )  [virtual]
 

return the section identifier this import belongs to

Implements SaX::SaXImportSyspIF.

Definition at line 172 of file import.cpp.

QString SaX::SaXImportSysp::getSectionName void   )  [virtual]
 

return the section name corresponding to the section ID

Implements SaX::SaXImportSyspIF.

Definition at line 182 of file import.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Jan 7 17:34:48 2008 for libsax by  doxygen 1.4.6