supertux
Public Member Functions | List of all members
ReaderIterator Class Referencefinal

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 ReaderDocumentget_doc () const
 

Detailed Description

The ReaderIterator class is for backward compatibilty with old fileformats only, do not use it in new code, use ReaderCollection and ReaderMapping instead.

Member Function Documentation

◆ next()

bool ReaderIterator::next ( )

must be called once before any of the other function become valid, i.e.

ReaderIterator it; while(it.next()) { ... }


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