Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PParser Class Reference

A class to parse the xml documents and place them in the appropriate pXmlNode tree's. More...

#include <pparser.h>

List of all members.

Public Methods

 PParser ()
 Constructor.

 ~PParser ()
 Deconstructor.

bool startDocument ()
 Does nothing.

bool endDocument ()
 Resets current node and filetype.

bool characters (const QString &ch)
 Sets text value of current node to ch.

bool startElement (const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &attr)
 Customized handler for start of xml element, inserts it into new child of current node.

bool endElement (const QString &namespaceURI, const QString &localName, const QString &qName)
 Customized handler for end of xml element,moves current node to parent of current.


Public Attributes

sxifilefirst
 pointer to first file

sxifilecurrfile
 pointer to current file

QList< sxifilefile
 list of files

pXmlNode content
 root node of content file.

pXmlNode style
 root node of style file

pXmlNode settings
 root node of settings file

pXmlNode meta
 root node of meta file

pXmlNodecurrent
 pointer to current node

QList< pImageimages
 list of images


Private Methods

int getFileType (const QString &qName)
 Gets the file type of file qith qName.


Private Attributes

int filetype
 current filetype of current file


Detailed Description

Author:
Ryan Rusaw

Definition at line 65 of file pparser.h.


Constructor & Destructor Documentation

PParser::PParser  
 

PParser::~PParser   [inline]
 

Definition at line 75 of file pparser.h.

00075 {};


Member Function Documentation

bool PParser::characters const QString &    ch
 

Returns:
true

bool PParser::endDocument  
 

Returns:
true

bool PParser::endElement const QString &    namespaceURI,
const QString &    localName,
const QString &    qName
 

Parameters:
namespaceURI  ignored
localName  ignored
qName  ignored
Returns:
true

int PParser::getFileType const QString &    qName [private]
 

Parameters:
qName  qualifed name of the file from its xml structure.
Returns:
filetype of qName or current filename if not found

bool PParser::startDocument  
 

Returns:
true

bool PParser::startElement const QString &    namespaceURI,
const QString &    localName,
const QString &    qName,
const QXmlAttributes &    attr
 

Parameters:
namespaceURI  ignored
localName  ignored
qName  Qualified name to insert into current node
attr  xml attributes
Returns:
true


Member Data Documentation

pXmlNode PParser::content
 

Definition at line 124 of file pparser.h.

pXmlNode* PParser::current
 

Definition at line 140 of file pparser.h.

sxifile* PParser::currfile
 

Definition at line 116 of file pparser.h.

QList<sxifile> PParser::file
 

Definition at line 120 of file pparser.h.

int PParser::filetype [private]
 

Definition at line 156 of file pparser.h.

sxifile* PParser::first
 

Definition at line 112 of file pparser.h.

QList<pImage> PParser::images
 

Definition at line 144 of file pparser.h.

pXmlNode PParser::meta
 

Definition at line 136 of file pparser.h.

pXmlNode PParser::settings
 

Definition at line 132 of file pparser.h.

pXmlNode PParser::style
 

Definition at line 128 of file pparser.h.


The documentation for this class was generated from the following file:
Generated on Sun Feb 2 21:28:30 2003 for PoqetPresenter by doxygen1.2.18