Modeler Extensions Framework
XMLElementIterator Class Reference

Public Member Functions

 XMLElementIterator (CLEMEXTXMLIterator *)
 
 XMLElementIterator (const XMLElementIterator &other)
 
XMLElementIteratoroperator= (const XMLElementIterator &other)
 
virtual ~XMLElementIterator ()
 
bool hasMore ()
 
XMLElement next ()
 
void deleteCurrentItem ()
 
virtual void close ()
 

Detailed Description

An iterator used to return all child elements with a given name

Definition at line 55 of file XMLHelper.h.

Constructor & Destructor Documentation

XMLElementIterator ( CLEMEXTXMLIterator *  )

copy constructor (new iterator shares the underlying resource with original)

Parameters
otherthe document to copy
virtual ~XMLElementIterator ( )
virtual

Member Function Documentation

virtual void close ( )
virtual

close the iterator

void deleteCurrentItem ( )

delete the current item

bool hasMore ( )

any remaining elements to return?

Returns
true if the iterator has further element(s) to return
XMLElement next ( )

get the next element

Returns
a pointer to the next XML element, or NULL if there are no further elements
XMLElementIterator& operator= ( const XMLElementIterator other)

assignment operator (new iterator shares the underlying resource with original)

Parameters
otherthe document to copy

The documentation for this class was generated from the following file: