#include <import.h>
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.
| 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().
| 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().
| 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.
1.5.3