Download NHK English news podcast automatically. XML Parser "spxml" is used. This application requires mpod mother board. See also http://mbed.org/users/geodenx/notebook/mpod/
Dependencies: BlinkLed HTTPClient EthernetInterface FatFileSystemCpp MSCFileSystem spxml mbed-rtos mbed
Fork of mpod_nhk_english by
Download NHK English news podcast automatically.
XML Parser "spxml" is used.
This application requires mpod mother board.
See also http://mbed.org/users/geodenx/notebook/mpod/
Diff: spxml/spdomiterator.hpp
- Revision:
- 4:7dae52cf560f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/spxml/spdomiterator.hpp Mon Aug 20 13:27:17 2012 +0000 @@ -0,0 +1,30 @@ +/* + * Copyright 2007 Stephen Liu + * 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