Mbed port of the Simple Plain Xml parser. See http://code.google.com/p/spxml/ for more details. This library uses less memory and is much better suited to streaming data than TinyXML (doesn\'t use as much C++ features, and especially works without streams). See http://mbed.org/users/hlipka/notebook/xml-parsing/ for usage examples.
Dependents: spxmltest_weather VFD_fontx2_weather weather_LCD_display News_LCD_display ... more
spdomiterator.hpp
- Committer:
- hlipka
- Date:
- 2010-11-24
- Revision:
- 0:3fa97f2c0505
File content as of revision 0:3fa97f2c0505:
/* * Copyright 2007 Stephen Liu * LGPL, see http://code.google.com/p/spxml/ * For license terms, see the file COPYING along with this library. */ #ifndef __spdomiterator_hpp__ #define __spdomiterator_hpp__ class SP_XmlNode; /// DFS iterator -- Depth First Search class SP_DomIterator { public: /// node as tree node, iterator this tree by DFS SP_DomIterator( const SP_XmlNode * node ); ~SP_DomIterator(); /// @return NULL : reach the end const SP_XmlNode * getNext(); private: SP_DomIterator( SP_DomIterator & ); SP_DomIterator & operator=( SP_DomIterator & ); const SP_XmlNode * mRoot; const SP_XmlNode * mCurrent; }; #endif