Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

xml::CXMLNodeSet Class Reference

#include <XMLNode.h>


Public Member Functions

 CXMLNodeSet (void)
 CXMLNodeSet (xmlNodeSetPtr nodeSet)
 CXMLNodeSet (xmlXPathObjectPtr object)
virtual ~CXMLNodeSet (void)
int getNodeNum (void)
bool getNodeAt (int index, CXMLNode *destination)
void print (void)

Private Attributes

xmlNodeSetPtr m_nodeSet
xmlXPathObjectPtr m_xpathObject


Constructor & Destructor Documentation

xml::CXMLNodeSet::CXMLNodeSet void   ) 
 

Definition at line 405 of file XMLNode.cpp.

References m_nodeSet.

00405                                      {
00406                 this->m_nodeSet = NULL;
00407         }

xml::CXMLNodeSet::CXMLNodeSet xmlNodeSetPtr  nodeSet  ) 
 

Definition at line 413 of file XMLNode.cpp.

References m_nodeSet.

00413                                                       {
00414                 this->m_nodeSet = nodeSet;
00415         }

xml::CXMLNodeSet::CXMLNodeSet xmlXPathObjectPtr  object  ) 
 

Definition at line 421 of file XMLNode.cpp.

References m_nodeSet, and m_xpathObject.

00421                                                          {
00422                 this->m_xpathObject = object;
00423                 this->m_nodeSet = object->nodesetval;
00424         }

xml::CXMLNodeSet::~CXMLNodeSet void   )  [virtual]
 

Definition at line 430 of file XMLNode.cpp.

References m_xpathObject.

00430                                       {
00431                 if(this->m_xpathObject) {
00432                         xmlXPathFreeObject(this->m_xpathObject);
00433                 }
00434                 // TODO: Was freigeben, wenn nur NodeSet verwendet wurde?
00435         }


Member Function Documentation

bool xml::CXMLNodeSet::getNodeAt int  index,
CXMLNode destination
 

Definition at line 453 of file XMLNode.cpp.

References getNodeNum().

Referenced by pge::TextureResourceFile::parseContent(), and pge::SGFFile::parseContent().

00453                                                                     {
00454                 if(index < this->getNodeNum()) {
00455                         *destination = CXMLNode(this->m_nodeSet->nodeTab[index]);
00456                         return true;
00457                 }
00458                 return false;
00459         }

Here is the call graph for this function:

int xml::CXMLNodeSet::getNodeNum void   ) 
 

Definition at line 441 of file XMLNode.cpp.

References m_nodeSet.

Referenced by getNodeAt(), pge::TextureResourceFile::parseContent(), pge::SGFFile::parseContent(), and print().

00441                                         {
00442                 if(this->m_nodeSet) {
00443                         return this->m_nodeSet->nodeNr;
00444                 } else {
00445                         return 0;
00446                 }
00447         }

void xml::CXMLNodeSet::print void   ) 
 

Definition at line 465 of file XMLNode.cpp.

References getNodeNum().

00465                                     {
00466                 int i;
00467 
00468 
00469                 for(i = 0; i < this->getNodeNum(); i++) {
00470                         CXMLNode(this->m_nodeSet->nodeTab[i]).print(true);
00471                 }
00472         }

Here is the call graph for this function:


Field Documentation

xmlNodeSetPtr xml::CXMLNodeSet::m_nodeSet [private]
 

Definition at line 194 of file XMLNode.h.

Referenced by CXMLNodeSet(), and getNodeNum().

xmlXPathObjectPtr xml::CXMLNodeSet::m_xpathObject [private]
 

Definition at line 195 of file XMLNode.h.

Referenced by CXMLNodeSet(), and ~CXMLNodeSet().


The documentation for this class was generated from the following files:
Generated on Mon Oct 16 12:10:03 2006 for Phobosengine by doxygen 1.3.4