Settings::Entry Class Reference

#include <Pt/Settings.h>

Modifiable settings entry.

Public Member Functions

Entry addEntry (const std::string &name)
 Adds a sub entry.
 
Entry addEntry (const char *name)
 Adds a sub entry.
 
Entry begin () const
 Begin of sub entries.
 
Entry end () const
 End of sub entries.
 
Entry entry (const std::string &name) const
 Returns a sub entry.
 
Entry entry (const char *name) const
 Returns a sub entry.
 
template<typename T >
bool get (T &value) const
 Gets the value.
 
Entry makeEntry (const char *name)
 Returns a sub entry.
 
Entry makeEntry (const std::string &name)
 Returns a sub entry.
 
const char * name () const
 Returns the entry name.
 
bool operator! () const
 Returns true if entry is invalid.
 
bool operator!= (const Entry &other) const
 Allows using the entry like an iterator.
 
Entryoperator* ()
 Allows using the entry like an iterator.
 
Entryoperator++ ()
 Allows using the entry like an iterator.
 
Entryoperator-> ()
 Allows using the entry like an iterator.
 
bool operator== (const Entry &other) const
 Allows using the entry like an iterator.
 
Entry operator[] (const std::string &name) const
 Returns a sub entry.
 
Entry operator[] (const char *name) const
 Returns a sub entry.
 
void removeEntry (const std::string &name)
 Removes a sub entry.
 
void removeEntry (const char *name)
 Removes a sub entry.
 
template<typename T >
void set (const T &value)
 Sets the value.