Fawkes API
Fawkes Development Version
|
#include <>>
Public Member Functions | |
virtual | ~ValueIterator () |
virtual bool | next ()=0 |
virtual bool | valid () const =0 |
virtual const char * | path () const =0 |
virtual const char * | type () const =0 |
virtual bool | is_float () const =0 |
virtual bool | is_uint () const =0 |
virtual bool | is_int () const =0 |
virtual bool | is_bool () const =0 |
virtual bool | is_string () const =0 |
virtual bool | is_list () const =0 |
virtual size_t | get_list_size () const =0 |
virtual float | get_float () const =0 |
virtual unsigned int | get_uint () const =0 |
virtual int | get_int () const =0 |
virtual bool | get_bool () const =0 |
virtual std::string | get_string () const =0 |
virtual std::vector< float > | get_floats () const =0 |
virtual std::vector< unsigned int > | get_uints () const =0 |
virtual std::vector< int > | get_ints () const =0 |
virtual std::vector< bool > | get_bools () const =0 |
virtual std::vector< std::string > | get_strings () const =0 |
virtual std::string | get_as_string () const =0 |
virtual std::string | get_comment () const =0 |
virtual bool | is_default () const =0 |
Iterator interface to iterate over config values. This does not implement a classic iterator interface with begin and end nodes but rather mimics a more Java-like interface where you iterate over the entries in a while loop until you covered all entries (much like a queue). If you implement this for your own configuration system you should not make the constructor publically accessible.
|
inlinevirtual |
Virtual emptry destructor.
Definition at line 78 of file config.h.
Referenced by fawkes::Configuration::~Configuration().
|
pure virtual |
Get value as string.
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
Referenced by ConfigChangeWatcherTool::config_value_changed(), and ClipsExecutiveThread::init().
|
pure virtual |
Get bool value.
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
Referenced by fawkes::SQLiteConfiguration::copy(), and fawkes::NetworkConfiguration::copy().
|
pure virtual |
Get list of values from configuration which is of type bool
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
|
pure virtual |
Get comment of value.
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
Referenced by ConfigChangeWatcherTool::config_comment_changed().
|
pure virtual |
Get float value.
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
Referenced by fawkes::SQLiteConfiguration::copy(), and fawkes::NetworkConfiguration::copy().
|
pure virtual |
Get list of values from configuration which is of type float
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
|
pure virtual |
Get int value.
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
Referenced by fawkes::SQLiteConfiguration::copy(), and fawkes::NetworkConfiguration::copy().
|
pure virtual |
Get list of values from configuration which is of type int
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
|
pure virtual |
Get number of elements in list value.
Exception | thrown if the element is not a list. |
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
|
pure virtual |
Get string value.
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
Referenced by BlackBoardLoggerPlugin::BlackBoardLoggerPlugin(), BlackBoardLogReplayPlugin::BlackBoardLogReplayPlugin(), fawkes::SQLiteConfiguration::copy(), fawkes::NetworkConfiguration::copy(), ProcRRDThread::init(), MongoRRDThread::init(), LaserFilterThread::init(), and LaserFilterPlugin::LaserFilterPlugin().
|
pure virtual |
Get list of values from configuration which is of type string
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
|
pure virtual |
Get unsigned int value.
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
Referenced by fawkes::SQLiteConfiguration::copy(), and fawkes::NetworkConfiguration::copy().
|
pure virtual |
Get list of values from configuration which is of type unsigned int
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
|
pure virtual |
Check if current value is a bool.
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
Referenced by fawkes::SQLiteConfiguration::copy(), and fawkes::NetworkConfiguration::copy().
|
pure virtual |
Check if current value was read from the default config.
Implemented in fawkes::YamlConfiguration::YamlValueIterator, fawkes::NetworkConfiguration::NetConfValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
Referenced by ConfigChangeWatcherTool::config_comment_changed(), ConfigChangeWatcherTool::config_value_changed(), fawkes::NetworkConfiguration::is_default(), and fawkes::ConfigNetworkHandler::loop().
|
pure virtual |
Check if current value is a float.
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
Referenced by fawkes::SQLiteConfiguration::copy(), and fawkes::NetworkConfiguration::copy().
|
pure virtual |
Check if current value is a int.
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
Referenced by fawkes::SQLiteConfiguration::copy(), and fawkes::NetworkConfiguration::copy().
|
pure virtual |
Check if a value is a list.
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
|
pure virtual |
Check if current value is a string.
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
Referenced by fawkes::PluginManager::config_tag_changed(), fawkes::SQLiteConfiguration::copy(), fawkes::NetworkConfiguration::copy(), ProcRRDThread::init(), MongoRRDThread::init(), LaserFilterThread::init(), and LaserFilterPlugin::LaserFilterPlugin().
|
pure virtual |
Check if current value is a unsigned int.
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
Referenced by fawkes::SQLiteConfiguration::copy(), and fawkes::NetworkConfiguration::copy().
|
pure virtual |
Check if there is another element and advance to this if possible. This advances to the next element, if there is one.
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
Referenced by BlackBoardLoggerPlugin::BlackBoardLoggerPlugin(), BlackBoardLogReplayPlugin::BlackBoardLogReplayPlugin(), BlackBoardSynchronizationPlugin::BlackBoardSynchronizationPlugin(), fawkes::SQLiteConfiguration::copy(), fawkes::NetworkConfiguration::copy(), DynamixelPlugin::DynamixelPlugin(), FvRetrieverPlugin::FvRetrieverPlugin(), IMUPlugin::IMUPlugin(), ProcRRDThread::init(), MongoRRDThread::init(), GossipThread::init(), ClipsExecutiveThread::init(), LaserFilterThread::init(), LaserClusterPlugin::LaserClusterPlugin(), LaserDeadSpotsDataFilter::LaserDeadSpotsDataFilter(), LaserFilterPlugin::LaserFilterPlugin(), LaserPlugin::LaserPlugin(), fawkes::ConfigNetworkHandler::loop(), and PanTiltPlugin::PanTiltPlugin().
|
pure virtual |
Path of value.
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
Referenced by BlackBoardLoggerPlugin::BlackBoardLoggerPlugin(), BlackBoardLogReplayPlugin::BlackBoardLogReplayPlugin(), BlackBoardSynchronizationPlugin::BlackBoardSynchronizationPlugin(), ConfigChangeWatcherTool::config_comment_changed(), fawkes::ConfigNetworkHandler::config_tag_changed(), ConfigChangeWatcherTool::config_value_changed(), fawkes::SQLiteConfiguration::copy(), fawkes::NetworkConfiguration::copy(), DynamixelPlugin::DynamixelPlugin(), FvRetrieverPlugin::FvRetrieverPlugin(), IMUPlugin::IMUPlugin(), ProcRRDThread::init(), MongoRRDThread::init(), GossipThread::init(), ClipsExecutiveThread::init(), LaserFilterThread::init(), GlobalStatePlexilAdapter::initialize(), LaserClusterPlugin::LaserClusterPlugin(), LaserDeadSpotsDataFilter::LaserDeadSpotsDataFilter(), LaserFilterPlugin::LaserFilterPlugin(), LaserPlugin::LaserPlugin(), and PanTiltPlugin::PanTiltPlugin().
|
pure virtual |
Type of value.
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
Referenced by ConfigChangeWatcherTool::config_value_changed(), fawkes::NetworkConfiguration::get_type(), ProcRRDThread::init(), and MongoRRDThread::init().
|
pure 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.
Implemented in fawkes::NetworkConfiguration::NetConfValueIterator, fawkes::YamlConfiguration::YamlValueIterator, and fawkes::SQLiteConfiguration::SQLiteValueIterator.
Referenced by fawkes::NetworkConfiguration::exists().