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

pXmlNode Class Reference

Class that forms basis of xml tree structures. More...

#include <pcontent.h>

List of all members.

Public Methods

 pXmlNode ()
 Constructor Creates a blank node.

 pXmlNode (pXmlNode *p, const QString &qName, const QXmlAttributes &attrib)
 Constructor Creates a node with given values.

 ~pXmlNode ()
 Deconstructor.

QString & getNodeName ()
 Gets internal nodename.

void setNodeName (const QString &name)
 Sets internal nodename.

QString & getText ()
 Gets internal text value.

void setText (const QString &t)
 Sets internal text value.

pXmlNode * getParent ()
 Gets pointer to internal parent pointer.

void setParent (pXmlNode *node)
 Sets internal pointer to parent.

QXmlAttributes & getA ()
 Gets internal QXmlAttributes variable.

void setA (const QXmlAttributes &attr)
 Sets internal QXmlAttibutes a value.

pXmlNode * findFirstChildWithName (const QString &s, bool recurse=TRUE)
 Find first child with a given nodename.

pXmlNode * findLastChildWithName (const QString &s, bool recurse=TRUE)
 Find last child with a given nodename.

pXmlNode * findChildWithNameAndValue (const QString &s, const QString &qName, const QString &val, bool recurse=TRUE)
 Find first child with a given nodename and a given attribute value.


Public Attributes

QList< pXmlNode > children
 List of children nodes.


Private Attributes

QString * text
 Pointer to text.

QString * nodename
 Pointer to nodename.

pXmlNode * parent
 Pointer to parent node.

QXmlAttributes a
 Xml Attributes of node.


Detailed Description

Author:
Ryan Rusaw

Definition at line 29 of file pcontent.h.


Constructor & Destructor Documentation

pXmlNode::pXmlNode  
 

pXmlNode::pXmlNode pXmlNode *    p,
const QString &    qName,
const QXmlAttributes &    attrib
 

Parameters:
p  Parent node.
qName  Qualified name of xml node.
attrib  QXmlAttributes of node.

pXmlNode::~pXmlNode   [inline]
 

Definition at line 49 of file pcontent.h.

00049 {};


Member Function Documentation

pXmlNode* pXmlNode::findChildWithNameAndValue const QString &    s,
const QString &    qName,
const QString &    val,
bool    recurse = TRUE
 

Parameters:
s  search for this nodename
qName  Qualified name of attribute
val  value of attrubute
recurse  recurses up children if true
Returns:
Pointer to childnode named s with attibute qName = val.

pXmlNode* pXmlNode::findFirstChildWithName const QString &    s,
bool    recurse = TRUE
 

Parameters:
s  search for this nodename
recurse  recurses up children if true
Returns:
Pointer to childnode named s

pXmlNode* pXmlNode::findLastChildWithName const QString &    s,
bool    recurse = TRUE
 

Parameters:
s  search for this nodename
recurse  recurses up children if true
Returns:
Pointer to childnode named s

QXmlAttributes& pXmlNode::getA  
 

Returns:
a

QString& pXmlNode::getNodeName  
 

Returns:
nodename

pXmlNode* pXmlNode::getParent  
 

Returns:
parent

QString& pXmlNode::getText  
 

Returns:
text.

void pXmlNode::setA const QXmlAttributes &    attr
 

Parameters:
attr  QXmlAttibutes to set.

void pXmlNode::setNodeName const QString &    name
 

Parameters:
name  Name to set nodename to.

void pXmlNode::setParent pXmlNode *    node
 

Parameters:
node  pointer to set.

void pXmlNode::setText const QString &    t
 

Parameters:
t  text value to set.


Member Data Documentation

QXmlAttributes pXmlNode::a [private]
 

Definition at line 134 of file pcontent.h.

QList<pXmlNode> pXmlNode::children
 

Definition at line 53 of file pcontent.h.

QString* pXmlNode::nodename [private]
 

Definition at line 126 of file pcontent.h.

pXmlNode* pXmlNode::parent [private]
 

Definition at line 130 of file pcontent.h.

QString* pXmlNode::text [private]
 

Definition at line 122 of file pcontent.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