SaX::SaXProcess Class Reference

SaX2 - SaX process execution class. More...

#include <process.h>

Inheritance diagram for SaX::SaXProcess:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void start (QList< char >, int=SAX_ISAX)
void start (int)
 SaXProcess (void)

Detailed Description

SaX2 - SaX process execution class.

The SaXProcess class provides an interface to call external programs including output parsing. Concerning libsax only the output formats of CDB files isax and sysp calls are handled. The internal structure is based on SaXStorage objects. All access and modifaction members are provided by the SaXStorage class.

 #include <sax/sax.h>

 QList<char> sysp_options;
 sysp_options.append ( "-q" );
 sysp_options.append ( "server" );
 SaXProcess* proc = new SaXProcess ();
 proc->start ( sysp_options , SAX_SYSP );
 if (proc->getItem("VID")) {
     printf ("%s\n",proc->getItem("VID").ascii());
 }

Definition at line 128 of file process.h.


Constructor & Destructor Documentation

SaX::SaXProcess::SaXProcess void   ) 
 

An object of this type is used to read information from one of the interfaces ISAX CDB SYSP or PROFILE. Depending what information should be retrieved a new process is forked calling isax sysp or createPRO. The CDB information is based on simple file reading

Definition at line 27 of file process.cpp.


Member Function Documentation

void SaX::SaXProcess::start int  fileID  )  [virtual]
 

This start method will check if the given fileID points to a valid file and call the appropriate evaluation method to the store the data

Implements SaX::SaXProcessIF.

Definition at line 95 of file process.cpp.

void SaX::SaXProcess::start QList< char >  args,
int  prog = SAX_ISAX
[virtual]
 

This start method will check if (prog) is a valid program and call it by adding the options set in args. After the call the appropriate evaluation method is called to store the data

Implements SaX::SaXProcessIF.

Definition at line 41 of file process.cpp.

References SaX::SaXProcessCall::addArgument().

Referenced by SaX::SaXImportProfile::doImport(), SaX::SaXImportCDB::doImport(), SaX::SaXImportSysp::doImport(), and SaX::SaXImport::doImport().

Here is the call graph for this function:


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