Fawkes API
Fawkes Development Version
|
SQLite configuration value iterator. More...
#include <config/sqlite.h>
Public Member Functions | |
virtual | ~SQLiteValueIterator () |
Destructor. More... | |
virtual bool | next () |
Check if there is another element and advance to this if possible. More... | |
virtual bool | valid () const |
Check if the current element is valid. More... | |
virtual const char * | path () const |
Path of value. More... | |
virtual const char * | type () const |
Type of value. More... | |
virtual bool | is_float () const |
Check if current value is a float. More... | |
virtual bool | is_uint () const |
Check if current value is a unsigned int. More... | |
virtual bool | is_int () const |
Check if current value is a int. More... | |
virtual bool | is_bool () const |
Check if current value is a bool. More... | |
virtual bool | is_string () const |
Check if current value is a string. More... | |
virtual bool | is_default () const |
Check if current value was read from the default config. More... | |
virtual float | get_float () const |
Get float value. More... | |
virtual unsigned int | get_uint () const |
Get unsigned int value. More... | |
virtual int | get_int () const |
Get int value. More... | |
virtual bool | get_bool () const |
Get bool value. More... | |
virtual std::string | get_string () const |
Get string value. More... | |
virtual std::string | get_as_string () const |
Get value as string. More... | |
virtual std::string | get_comment () const |
Get comment. More... | |
std::string | get_modtype () const |
Get modification type. More... | |
std::string | get_oldvalue () const |
Get old value (as string). More... | |
![]() | |
virtual | ~ValueIterator () |
Virtual emptry destructor. More... | |
Protected Member Functions | |
SQLiteValueIterator (::sqlite3_stmt *stmt, void *p=NULL) | |
Constructor. More... | |
Friends | |
class | SQLiteConfiguration |
|
protected |
Constructor.
stmt | compiled SQLite statement |
p | pointer to arbitrary data that is freed (not deleted!) when the iterator is deleted. |
Definition at line 2040 of file sqlite.cpp.
|
virtual |
Destructor.
Definition at line 2048 of file sqlite.cpp.
|
virtual |
Get value as string.
Implements fawkes::Configuration::ValueIterator.
Definition at line 2222 of file sqlite.cpp.
|
virtual |
Get bool value.
Implements fawkes::Configuration::ValueIterator.
Definition at line 2203 of file sqlite.cpp.
|
virtual |
Get comment.
Implements fawkes::Configuration::ValueIterator.
Definition at line 2231 of file sqlite.cpp.
|
virtual |
Get float value.
Implements fawkes::Configuration::ValueIterator.
Definition at line 2169 of file sqlite.cpp.
|
virtual |
Get int value.
Implements fawkes::Configuration::ValueIterator.
Definition at line 2194 of file sqlite.cpp.
std::string fawkes::SQLiteConfiguration::SQLiteValueIterator::get_modtype | ( | ) | const |
Get modification type.
This can only be called if the iterator has been retrieved via SQLiteConfiguration::modified_iterator(). Otherwise the return value is always and empty string.
Definition at line 2244 of file sqlite.cpp.
std::string fawkes::SQLiteConfiguration::SQLiteValueIterator::get_oldvalue | ( | ) | const |
Get old value (as string).
This can only be called if the iterator has been retrieved via SQLiteConfiguration::modified_iterator(). The value is always returned as string, as it is meant for debugging purposes only. Otherwise the return value is always and empty string.
Definition at line 2260 of file sqlite.cpp.
|
virtual |
Get string value.
Implements fawkes::Configuration::ValueIterator.
Definition at line 2212 of file sqlite.cpp.
|
virtual |
Get unsigned int value.
Implements fawkes::Configuration::ValueIterator.
Definition at line 2179 of file sqlite.cpp.
|
virtual |
Check if current value is a bool.
Implements fawkes::Configuration::ValueIterator.
Definition at line 2143 of file sqlite.cpp.
|
virtual |
Check if current value was read from the default config.
Implements fawkes::Configuration::ValueIterator.
Definition at line 2159 of file sqlite.cpp.
|
virtual |
Check if current value is a float.
Implements fawkes::Configuration::ValueIterator.
Definition at line 2114 of file sqlite.cpp.
|
virtual |
Check if current value is a int.
Implements fawkes::Configuration::ValueIterator.
Definition at line 2133 of file sqlite.cpp.
|
virtual |
Check if current value is a string.
Implements fawkes::Configuration::ValueIterator.
Definition at line 2153 of file sqlite.cpp.
|
virtual |
Check if current value is a unsigned int.
Implements fawkes::Configuration::ValueIterator.
Definition at line 2124 of file sqlite.cpp.
|
virtual |
Check if there is another element and advance to this if possible.
This advances to the next element, if there is one.
Implements fawkes::Configuration::ValueIterator.
Definition at line 2065 of file sqlite.cpp.
|
virtual |
Path of value.
Implements fawkes::Configuration::ValueIterator.
Definition at line 2094 of file sqlite.cpp.
|
virtual |
Type of value.
Implements fawkes::Configuration::ValueIterator.
Definition at line 2104 of file sqlite.cpp.
|
virtual |
Check if the current element is valid.
This is much like the classic end element for iterators. If the iterator is invalid there all subsequent calls to next() shall fail.
Implements fawkes::Configuration::ValueIterator.
Definition at line 2084 of file sqlite.cpp.