supertux
|
The ReaderIterator class is for backward compatibilty with old fileformats only, do not use it in new code, use ReaderCollection and ReaderMapping instead. More...
#include <reader_iterator.hpp>
Public Member Functions | |
ReaderIterator (const ReaderDocument &doc, const sexp::Value &sx) | |
bool | next () |
must be called once before any of the other function become valid, i.e. More... | |
bool | is_string () |
bool | is_pair () |
std::string | as_string_item () |
std::string | get_key () const |
void | get (bool &value) const |
void | get (int &value) const |
void | get (float &value) const |
void | get (std::string &value) const |
ReaderMapping | as_mapping () const |
const sexp::Value & | get_sexp () const |
const ReaderDocument & | get_doc () const |
The ReaderIterator class is for backward compatibilty with old fileformats only, do not use it in new code, use ReaderCollection and ReaderMapping instead.
bool ReaderIterator::next | ( | ) |
must be called once before any of the other function become valid, i.e.
ReaderIterator it; while(it.next()) { ... }