SaX::SaXExport Class Reference

SaX2 - Export class. More...

#include <export.h>

Inheritance diagram for SaX::SaXExport:

Inheritance graph
[legend]
List of all members.

Public Member Functions

bool doExport (void)
 SaXExport (SaXImport *, SaXException *)

Protected Attributes

SaXImportmImport
QFile * mHandle
QString mFile

Detailed Description

SaX2 - Export class.

The SaXExport class provides an abstraction for the ISaX apidata file. Using ISaX to create or modify X11 configurations requires a special input file called apidata. The file is automatically build when all needed sections are available. Each section itself is a file corresponding to a SaXExport object. A SaXExport object requires a valid SaXImport object for initializing. After the export object has been created the programmer simply exports the data by calling doExport(). There is no need to take care about the files created implicitely. All files refering the library will be created in /var/lib/sax

 #include <sax/sax.h>

 SaXImport* import = new SaXImport (SAX_DESKTOP);
 SaXExport* export = new SaXExport (import,NULL);
 import->doImport();
 export->doExport();

Definition at line 91 of file export.h.


Constructor & Destructor Documentation

SaX::SaXExport::SaXExport SaXImport import,
SaXException to
 

An object of this type is used to create one of the section files which build the contents of the later apidata file.

Definition at line 27 of file export.cpp.

References SaX::SaXException::errorString(), SaX::SaXException::excExportSectionFailed(), SaX::SaXImport::getSectionID(), and mFile.

Here is the call graph for this function:


Member Function Documentation

bool SaX::SaXExport::doExport void   )  [virtual]
 

use mImport to extract the data and write it to the previously opened file. Format used is: <ID:KEY:VALUE>

Implements SaX::SaXExportIF.

Definition at line 73 of file export.cpp.

References SaX::SaXException::errorString(), SaX::SaXException::excFileOpenFailed(), SaX::SaXException::excLockSetFailed(), SaX::SaXException::excPermissionDenied(), SaX::SaXException::havePrivileges(), and mHandle.

Referenced by SaX::SaXConfig::createConfiguration().

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:30:54 2008 for libsax by  doxygen 1.4.6