#include <import.h>
Inheritance diagram for SaX::SaXImportSysp:
Public Member Functions | |
void | doImport (void) |
int | getSectionID (void) |
QString | getSectionName (void) |
SaXImportSysp (int) |
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.
|
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: ![]() |
|
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: ![]() |
|
return the section identifier this import belongs to Implements SaX::SaXImportSyspIF. Definition at line 172 of file import.cpp. |
|
return the section name corresponding to the section ID Implements SaX::SaXImportSyspIF. Definition at line 182 of file import.cpp. |