Fawkes API
Fawkes Development Version
|
Interface for configuration handling. More...
#include <>>
Classes | |
class | ValueIterator |
Iterator interface to iterate over config values. More... | |
Public Member Functions | |
virtual | ~Configuration () |
Virtual empty destructor. More... | |
virtual void | copy (Configuration *copyconf)=0 |
Copies all values from the given configuration. More... | |
virtual void | add_change_handler (ConfigurationChangeHandler *h) |
Add a configuration change handler. More... | |
virtual void | rem_change_handler (ConfigurationChangeHandler *h) |
Remove a configuration change handler. More... | |
virtual void | load (const char *file_path)=0 |
Load configuration. More... | |
virtual bool | exists (const char *path)=0 |
Check if a given value exists. More... | |
virtual bool | is_float (const char *path)=0 |
Check if a value is of type float. More... | |
virtual bool | is_uint (const char *path)=0 |
Check if a value is of type unsigned int. More... | |
virtual bool | is_int (const char *path)=0 |
Check if a value is of type int. More... | |
virtual bool | is_bool (const char *path)=0 |
Check if a value is of type bool. More... | |
virtual bool | is_string (const char *path)=0 |
Check if a value is of type string. More... | |
virtual bool | is_list (const char *path)=0 |
Check if a value is a list. More... | |
virtual bool | is_default (const char *path)=0 |
Check if a value was read from the default config. More... | |
virtual float | get_float (const char *path)=0 |
Get value from configuration which is of type float. More... | |
virtual unsigned int | get_uint (const char *path)=0 |
Get value from configuration which is of type unsigned int. More... | |
virtual int | get_int (const char *path)=0 |
Get value from configuration which is of type int. More... | |
virtual bool | get_bool (const char *path)=0 |
Get value from configuration which is of type bool. More... | |
virtual std::string | get_string (const char *path)=0 |
Get value from configuration which is of type string. More... | |
virtual std::vector< float > | get_floats (const char *path)=0 |
Get list of values from configuration which is of type float. More... | |
virtual std::vector< unsigned int > | get_uints (const char *path)=0 |
Get list of values from configuration which is of type unsigned int. More... | |
virtual std::vector< int > | get_ints (const char *path)=0 |
Get list of values from configuration which is of type int. More... | |
virtual std::vector< bool > | get_bools (const char *path)=0 |
Get list of values from configuration which is of type bool. More... | |
virtual std::vector< std::string > | get_strings (const char *path)=0 |
Get list of values from configuration which is of type string. More... | |
virtual ValueIterator * | get_value (const char *path)=0 |
Get value from configuration. More... | |
virtual std::string | get_type (const char *path)=0 |
Get type of value at given path. More... | |
virtual std::string | get_comment (const char *path)=0 |
Get comment of value at given path. More... | |
virtual std::string | get_default_comment (const char *path)=0 |
Get comment of value at given path. More... | |
virtual void | set_float (const char *path, float f)=0 |
Set new value in configuration of type float. More... | |
virtual void | set_uint (const char *path, unsigned int uint)=0 |
Set new value in configuration of type unsigned int. More... | |
virtual void | set_int (const char *path, int i)=0 |
Set new value in configuration of type int. More... | |
virtual void | set_bool (const char *path, bool b)=0 |
Set new value in configuration of type bool. More... | |
virtual void | set_string (const char *path, std::string &s)=0 |
Set new value in configuration of type string. More... | |
virtual void | set_string (const char *path, const char *s)=0 |
Set new value in configuration of type string. More... | |
virtual void | set_floats (const char *path, std::vector< float > &f)=0 |
Set new value in configuration of type float. More... | |
virtual void | set_uints (const char *path, std::vector< unsigned int > &uint)=0 |
Set new value in configuration of type unsigned int. More... | |
virtual void | set_ints (const char *path, std::vector< int > &i)=0 |
Set new value in configuration of type int. More... | |
virtual void | set_bools (const char *path, std::vector< bool > &b)=0 |
Set new value in configuration of type bool. More... | |
virtual void | set_strings (const char *path, std::vector< std::string > &s)=0 |
Set new value in configuration of type string. More... | |
virtual void | set_strings (const char *path, std::vector< const char *> &s)=0 |
Set new value in configuration of type string. More... | |
virtual void | set_comment (const char *path, const char *comment)=0 |
Set new comment for existing value. More... | |
virtual void | set_comment (const char *path, std::string &comment)=0 |
Set new comment for existing value. More... | |
virtual void | erase (const char *path)=0 |
Erase the given value from the configuration. More... | |
virtual void | set_default_float (const char *path, float f)=0 |
Set new default value in configuration of type float. More... | |
virtual void | set_default_uint (const char *path, unsigned int uint)=0 |
Set new default value in configuration of type unsigned int. More... | |
virtual void | set_default_int (const char *path, int i)=0 |
Set new default value in configuration of type int. More... | |
virtual void | set_default_bool (const char *path, bool b)=0 |
Set new default value in configuration of type bool. More... | |
virtual void | set_default_string (const char *path, std::string &s)=0 |
Set new default value in configuration of type string. More... | |
virtual void | set_default_string (const char *path, const char *s)=0 |
Set new default value in configuration of type string. More... | |
virtual void | set_default_comment (const char *path, const char *comment)=0 |
Set new default comment for existing default configuration value. More... | |
virtual void | set_default_comment (const char *path, std::string &comment)=0 |
Set new default comment for existing default configuration value. More... | |
virtual void | erase_default (const char *path)=0 |
Erase the given default value from the configuration. More... | |
virtual ValueIterator * | iterator ()=0 |
Iterator for all values. More... | |
virtual ValueIterator * | search (const char *path)=0 |
Iterator with search results. More... | |
virtual void | lock ()=0 |
Lock the config. More... | |
virtual bool | try_lock ()=0 |
Try to lock the config. More... | |
virtual void | unlock ()=0 |
Unlock the config. More... | |
virtual void | try_dump ()=0 |
Try to dump configuration. More... | |
Protected Types | |
typedef std::list< ConfigurationChangeHandler * > | ChangeHandlerList |
List that contains pointers to ConfigurationChangeHandler. More... | |
typedef std::multimap< const char *, ConfigurationChangeHandler *, StringLess > | ChangeHandlerMultimap |
Multimap string to config change handlers. More... | |
typedef std::pair< ChangeHandlerMultimap::iterator, ChangeHandlerMultimap::iterator > | ChangeHandlerMultimapRange |
Config change handler multimap range. More... | |
Protected Member Functions | |
ChangeHandlerList * | find_handlers (const char *path) |
Find handlers for given path. More... | |
void | notify_handlers (const char *path, bool comment_changed=false) |
Notify handlers for given path. More... | |
Protected Attributes | |
ChangeHandlerMultimap | _change_handlers |
Registered change handlers. More... | |
ChangeHandlerMultimapRange | _ch_range |
Change handler range. More... | |
Interface for configuration handling.
We know that half of robotics is about parameter tuning. The Configuration interface defines a unified way of storing parameters and other configuration options no matter of how the database is implemented. This is mainly done to allow for testing different solutions for ticket #10.
|
protected |
List that contains pointers to ConfigurationChangeHandler.
|
protected |
|
protected |
|
inlinevirtual |
|
virtual |
Add a configuration change handler.
The added handler is called whenever a value changes and the handler desires to get notified for the given component.
h | configuration change handler |
Reimplemented in fawkes::NetworkConfiguration.
Definition at line 547 of file config.cpp.
References fawkes::ConfigurationChangeHandler::config_monitor_prefix().
Referenced by fawkes::NetworkConfiguration::add_change_handler(), ConfigChangeWatcherTool::ConfigChangeWatcherTool(), fawkes::ConfigNetworkHandler::ConfigNetworkHandler(), ProcRRDThread::init(), MongoRRDThread::init(), StaticTransformsThread::init(), and fawkes::PluginManager::PluginManager().
|
pure virtual |
Copies all values from the given configuration.
All values from the given configuration are copied. Old values are not erased so that the copied values will overwrite existing values, new values are created, but values existent in current config but not in the copied config will remain unchanged.
copyconf | configuration to copy |
Implemented in fawkes::YamlConfiguration, fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
|
pure virtual |
Erase the given value from the configuration.
It is not an error if the value does not exists before deletion.
path | path to value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::ConfigNetworkHandler::loop(), and MongoLogPlugin::MongoLogPlugin().
|
pure virtual |
Erase the given default value from the configuration.
It is not an error if the value does not exists before deletion.
path | path to value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::ConfigNetworkHandler::loop().
|
pure virtual |
Check if a given value exists.
path | path to value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by StaticTransformsThread::finalize(), GossipThread::init(), NavGraphGeneratorThread::init(), RobotinoSimThread::init(), and NavGraphThread::init().
|
protected |
Find handlers for given path.
path | path to get handlers for |
Definition at line 593 of file config.cpp.
|
pure virtual |
Get value from configuration which is of type bool.
path | path to value |
Implemented in fawkes::YamlConfiguration, fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by AmclPlugin::AmclPlugin(), BlackBoardLoggerPlugin::BlackBoardLoggerPlugin(), BlackBoardLogReplayPlugin::BlackBoardLogReplayPlugin(), BlackBoardSynchronizationPlugin::BlackBoardSynchronizationPlugin(), MongoDBThread::ClientConf::ClientConf(), fawkes::EclExternalConfig::config_instance(), DynamixelPlugin::DynamixelPlugin(), fawkes::EscapePotentialFieldDriveModule::EscapePotentialFieldDriveModule(), fawkes::EscapePotentialFieldOmniDriveModule::EscapePotentialFieldOmniDriveModule(), fawkes::FawkesMainThread::FawkesMainThread(), StaticTransformsThread::finalize(), PanTiltSonyEviD100PThread::finalize(), FvRetrieverPlugin::FvRetrieverPlugin(), IMUPlugin::IMUPlugin(), JacoActThread::init(), GossipThread::init(), JoystickTeleOpThread::init(), TabletopVisualizationThread::init(), EclipseAgentThread::init(), FountainThread::init(), WebviewPtzCamThread::init(), LaserSensorThread::init(), GazsimCommThread::init(), PanTiltSonyEviD100PThread::init(), JoystickAcquisitionThread::init(), MapLaserGenThread::init(), DirectRobotinoComThread::init(), ROSNodeThread::init(), RefBoxCommThread::init(), Roomba500Thread::init(), NavGraphGeneratorThread::init(), FvRetrieverThread::init(), RobotinoSensorThread::init(), OpenNiContextThread::init(), NaoQiLedThread::init(), ClipsAgentThread::init(), OpenPRSThread::init(), ColliActThread::init(), RobotinoActThread::init(), XmlRpcThread::init(), NaoQiButtonThread::init(), PanTiltRX28Thread::init(), DynamixelDriverThread::init(), LaserClusterThread::init(), RosTfThread::init(), LuaAgentPeriodicExecutionThread::init(), RobotinoSimThread::init(), JacoOpenraveBaseThread::init(), LuaAgentContinuousExecutionThread::init(), NavGraphThread::init(), ColliThread::init(), Bumblebee2Thread::init(), SkillerExecutionThread::init(), OpenNiPointCloudThread::init(), KatanaActThread::init(), LaserLinesThread::init(), OpenRobotinoComThread::init(), WebviewThread::init(), AmclThread::init(), TabletopObjectsThread::init(), JacoPlugin::JacoPlugin(), LaserClusterPlugin::LaserClusterPlugin(), LaserFilterPlugin::LaserFilterPlugin(), fawkes::LaserOccupancyGrid::LaserOccupancyGrid(), LaserPlugin::LaserPlugin(), LuaAgentPlugin::LuaAgentPlugin(), MongoLogPlugin::MongoLogPlugin(), NavGraphGeneratorPlugin::NavGraphGeneratorPlugin(), NavGraphPlugin::NavGraphPlugin(), OpenPRSAgentPlugin::OpenPRSAgentPlugin(), PanTiltPlugin::PanTiltPlugin(), PointCloudDBMergePipeline< pcl::PointXYZ >::PointCloudDBMergePipeline(), LaseEdlAcquisitionThread::pre_init(), SkillerPlugin::SkillerPlugin(), and LaserFilterThread::wait_done().
|
pure virtual |
Get list of values from configuration which is of type bool.
path | path to value |
Implemented in fawkes::YamlConfiguration, fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::EclExternalConfig::config_instance().
|
pure virtual |
Get comment of value at given path.
The value at the given path must exist in the host-specific configuration.
path | path to value |
ConfigEntryNotFoundException | shall be thrown if value does not exist |
ConfigurationException | shall be thrown on any other error |
Implemented in fawkes::YamlConfiguration, fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
|
pure virtual |
Get comment of value at given path.
The value at the given path must exist in the default configuration.
path | path to value |
ConfigEntryNotFoundException | shall be thrown if value does not exist |
ConfigurationException | shall be thrown on any other error |
Implemented in fawkes::YamlConfiguration, fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
|
pure virtual |
Get value from configuration which is of type float.
path | path to value |
Implemented in fawkes::YamlConfiguration, fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::AbstractDriveMode::AbstractDriveMode(), fawkes::BackwardDriveModule::BackwardDriveModule(), fawkes::BaseMotorInstruct::BaseMotorInstruct(), fawkes::BiwardDriveModule::BiwardDriveModule(), BlackBoardLogReplayPlugin::BlackBoardLogReplayPlugin(), fawkes::EclExternalConfig::config_instance(), fawkes::EscapeDriveModule::EscapeDriveModule(), fawkes::EscapePotentialFieldDriveModule::EscapePotentialFieldDriveModule(), fawkes::EscapePotentialFieldOmniDriveModule::EscapePotentialFieldOmniDriveModule(), StaticTransformsThread::finalize(), fawkes::ForwardDriveModule::ForwardDriveModule(), fawkes::ForwardOmniDriveModule::ForwardOmniDriveModule(), GazsimWebcam::GazsimWebcam(), HokuyoUrgAcquisitionThread::init(), NavGraphVisualizationThread::init(), RRDThread::init(), JoystickTeleOpThread::init(), TabletopVisualizationThread::init(), WebviewPtzCamThread::init(), GazsimCommThread::init(), JoystickAcquisitionThread::init(), MongoLogTransformsThread::init(), MapLaserGenThread::init(), LaserSimThread::init(), DirectRobotinoComThread::init(), NavGraphGeneratorThread::init(), RefBoxCommThread::init(), VisLocalizationThread::init(), LocalizationSimThread::init(), DepthcamSimThread::init(), ClipsAgentThread::init(), OpenPRSThread::init(), ColliActThread::init(), RobotinoActThread::init(), RosPointCloudThread::init(), PanTiltRX28Thread::init(), NavGraphClustersThread::init(), DynamixelDriverThread::init(), LaserClusterThread::init(), MongoLogImagesThread::init(), RosTfThread::init(), JacoOpenraveBaseThread::init(), RobotinoSimThread::init(), NavGraphThread::init(), MongoLogPointCloudThread::init(), ColliThread::init(), Bumblebee2Thread::init(), KatanaActThread::init(), LaserLinesThread::init(), AmclThread::init(), RobotStatePublisherThread::init(), TabletopObjectsThread::init(), LaserDeadSpotsDataFilter::LaserDeadSpotsDataFilter(), fawkes::LaserOccupancyGrid::LaserOccupancyGrid(), PointCloudDBMergePipeline< pcl::PointXYZ >::PointCloudDBMergePipeline(), PointCloudDBPipeline< pcl::PointXYZ >::PointCloudDBPipeline(), LaseEdlAcquisitionThread::pre_init(), SickTiM55xCommonAcquisitionThread::read_common_config(), fawkes::RoboShape::RoboShape(), and LaserFilterThread::wait_done().
|
pure virtual |
Get list of values from configuration which is of type float.
path | path to value |
Implemented in fawkes::YamlConfiguration, fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::EclExternalConfig::config_instance(), PointCloudDBMergePipeline< pcl::PointXYZ >::PointCloudDBMergePipeline(), and PointCloudDBPipeline< pcl::PointXYZ >::PointCloudDBPipeline().
|
pure virtual |
Get value from configuration which is of type int.
path | path to value |
Implemented in fawkes::YamlConfiguration, fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::AbstractDriveMode::AbstractDriveMode(), fawkes::AStar::AStar(), fawkes::EclExternalConfig::config_instance(), NavGraphClustersThread::init(), RobotinoSimThread::init(), ColliThread::init(), Bumblebee2Thread::init(), fawkes::LaserOccupancyGrid::LaserOccupancyGrid(), fawkes::RoboShape::RoboShape(), and fawkes::Search::Search().
|
pure virtual |
Get list of values from configuration which is of type int.
path | path to value |
Implemented in fawkes::YamlConfiguration, fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::EclExternalConfig::config_instance().
|
pure virtual |
Get value from configuration which is of type string.
path | path to value |
Implemented in fawkes::YamlConfiguration, fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by BlackBoardLoggerPlugin::BlackBoardLoggerPlugin(), BlackBoardLogReplayPlugin::BlackBoardLogReplayPlugin(), MongoDBThread::ClientConf::ClientConf(), fawkes::EclExternalConfig::config_instance(), fawkes::OpenPRSKernelManager::create_kernel(), MongoDBThread::delete_client(), StaticTransformsThread::finalize(), FvRetrieverPlugin::FvRetrieverPlugin(), GazsimWebcam::GazsimWebcam(), IMUPlugin::IMUPlugin(), SickTiM55xEthernetAcquisitionThread::init(), SickTiM55xUSBAcquisitionThread::init(), ROSRobotDescriptionThread::init(), NavGraphGeneratorVisualizationThread::init(), OpenPRSAgentThread::init(), JacoActThread::init(), GossipThread::init(), HokuyoUrgAcquisitionThread::init(), NavGraphVisualizationThread::init(), ProcRRDThread::init(), ROSCmdVelThread::init(), ROSOdometryThread::init(), JoystickTeleOpThread::init(), TabletopVisualizationThread::init(), IMUSensorThread::init(), CruizCoreXG1010AcquisitionThread::init(), FountainThread::init(), EclipseAgentThread::init(), FestivalSynthThread::init(), HokuyoUrgGbxAcquisitionThread::init(), PanTiltDirectedPerceptionThread::init(), RosNavgraphBreakoutThread::init(), WebviewPtzCamThread::init(), MongoLogLoggerThread::init(), GazsimTimesourceThread::init(), PanTiltSonyEviD100PThread::init(), LaserSensorThread::init(), RobotinoIrPclThread::init(), FliteSynthThread::init(), MongoLogTransformsThread::init(), JoystickAcquisitionThread::init(), MongoLogBlackboardThread::init(), ROSNodeThread::init(), RosPosition3DThread::init(), IMUAcquisitionThread::init(), MapLaserGenThread::init(), PointCloudDBStoreThread::init(), DirectRobotinoComThread::init(), LaserSimThread::init(), NavGraphGeneratorThread::init(), GazeboNodeThread::init(), FvRetrieverThread::init(), RefBoxCommThread::init(), Roomba500Thread::init(), BlackBoardSynchronizationThread::init(), VisLocalizationThread::init(), OpenNiContextThread::init(), RobotinoSensorThread::init(), DepthcamSimThread::init(), LocalizationSimThread::init(), CLIPSThread::init(), OpenNiImageThread::init(), OpenNiPclOnlyThread::init(), OpenPRSThread::init(), PointCloudDBRetrieveThread::init(), RosMoveBaseThread::init(), ColliActThread::init(), RobotinoActThread::init(), PanTiltRX28Thread::init(), PointCloudDBMergeThread::init(), NavGraphClustersThread::init(), PointCloudDBROSCommThread::init(), DynamixelDriverThread::init(), LaserClusterThread::init(), MongoLogImagesThread::init(), LuaAgentPeriodicExecutionThread::init(), RobotinoSimThread::init(), LuaAgentContinuousExecutionThread::init(), NavGraphThread::init(), MongoLogPointCloudThread::init(), PlayerClientThread::init(), ColliThread::init(), Bumblebee2Thread::init(), SkillerExecutionThread::init(), OpenNiPointCloudThread::init(), KatanaActThread::init(), NavGraphInteractiveThread::init(), LaserLinesThread::init(), OpenRobotinoComThread::init(), WebviewThread::init(), AmclThread::init(), RobotStatePublisherThread::init(), TabletopObjectsThread::init(), JacoBimanualOpenraveThread::JacoBimanualOpenraveThread(), JacoOpenraveThread::JacoOpenraveThread(), LaserMapFilterDataFilter::LaserMapFilterDataFilter(), fawkes::LaserOccupancyGrid::LaserOccupancyGrid(), LaserPlugin::LaserPlugin(), fawkes::PluginManager::load(), MongoLogPlugin::MongoLogPlugin(), OpenPRSAgentPlugin::OpenPRSAgentPlugin(), PanTiltPlugin::PanTiltPlugin(), PointCloudDBMergePipeline< pcl::PointXYZ >::PointCloudDBMergePipeline(), PointCloudDBRetrievePipeline< pcl::PointXYZ >::PointCloudDBRetrievePipeline(), LaseEdlAcquisitionThread::pre_init(), RobotinoPlugin::RobotinoPlugin(), fawkes::SelectDriveMode::SelectDriveMode(), WebviewUserVerifier::verify_user(), and LaserFilterThread::wait_done().
|
pure virtual |
Get list of values from configuration which is of type string.
path | path to value |
Implemented in fawkes::YamlConfiguration, fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::EclExternalConfig::config_instance(), fawkes::OpenPRSKernelManager::create_kernel(), ClipsProtobufThread::init(), NavGraphStaticConstraintsThread::init(), EclipseAgentThread::init(), GazsimCommThread::init(), MongoLogBlackboardThread::init(), WebcamSimThread::init(), ClipsAgentThread::init(), MongoLogImagesThread::init(), MongoLogPointCloudThread::init(), and WebviewThread::init().
|
pure virtual |
Get type of value at given path.
path | path to value |
ConfigurationException | shall be thrown if value does not exist or on any other error. |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::EclExternalConfig::config_instance().
|
pure virtual |
Get value from configuration which is of type unsigned int.
path | path to value |
Implemented in fawkes::YamlConfiguration, fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::EclExternalConfig::config_instance(), fawkes::FawkesMainThread::FawkesMainThread(), RosClockThread::init(), HokuyoUrgAcquisitionThread::init(), GossipThread::init(), ProcRRDThread::init(), RoombaJoystickThread::init(), TimeTrackerMainLoopThread::init(), JoystickTeleOpThread::init(), TabletopVisualizationThread::init(), FountainThread::init(), CruizCoreXG1010AcquisitionThread::init(), WebviewPtzCamThread::init(), PanTiltDirectedPerceptionThread::init(), PanTiltSonyEviD100PThread::init(), JoystickAcquisitionThread::init(), DirectRobotinoComThread::init(), ROSNodeThread::init(), BlackBoardSynchronizationThread::init(), RefBoxCommThread::init(), NavGraphGeneratorThread::init(), OpenPRSThread::init(), RobotinoActThread::init(), XmlRpcThread::init(), PanTiltRX28Thread::init(), DynamixelDriverThread::init(), MongoLogImagesThread::init(), LaserClusterThread::init(), MongoLogPointCloudThread::init(), PlayerClientThread::init(), Bumblebee2Thread::init(), KatanaActThread::init(), LaserLinesThread::init(), OpenRobotinoComThread::init(), WebviewThread::init(), AmclThread::init(), TabletopObjectsThread::init(), RoombaJoystickThread::loop(), PointCloudDBMergePipeline< pcl::PointXYZ >::PointCloudDBMergePipeline(), LaseEdlAcquisitionThread::pre_init(), and LaserFilterThread::wait_done().
|
pure virtual |
Get list of values from configuration which is of type unsigned int.
path | path to value |
Implemented in fawkes::YamlConfiguration, fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::EclExternalConfig::config_instance(), GazsimCommThread::init(), and DynamixelDriverThread::init().
|
pure virtual |
Get value from configuration.
path | path to value |
Implemented in fawkes::YamlConfiguration, fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::ConfigNetworkHandler::loop().
|
pure virtual |
Check if a value is of type bool.
path | path to value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::EclExternalConfig::config_instance().
|
pure virtual |
Check if a value was read from the default config.
path | path to value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
|
pure virtual |
Check if a value is of type float.
path | path to value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::EclExternalConfig::config_instance().
|
pure virtual |
Check if a value is of type int.
path | path to value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::EclExternalConfig::config_instance().
|
pure virtual |
Check if a value is a list.
path | path to value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::EclExternalConfig::config_instance(), and fawkes::OpenPRSKernelManager::create_kernel().
|
pure virtual |
Check if a value is of type string.
path | path to value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::EclExternalConfig::config_instance().
|
pure virtual |
Check if a value is of type unsigned int.
path | path to value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::EclExternalConfig::config_instance().
|
pure virtual |
Iterator for all values.
Returns an iterator that can be used to iterate over all values in the current configuration, it will value the overlay. If a default and a host-specific value exists you will only see the host-specific value.
Implemented in fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, fawkes::YamlConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::SQLiteConfiguration::copy(), fawkes::NetworkConfiguration::copy(), and fawkes::ConfigNetworkHandler::loop().
|
pure virtual |
Load configuration.
Loads configuration data, or opens a file, depending on the implementation. After this call access to all other methods shall be possible.
file_path | path of the configuration file. |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
|
pure virtual |
Lock the config.
No further changes or queries can be executed on the configuration and will block until the config is unlocked.
Implemented in fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, fawkes::YamlConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::SQLiteConfiguration::copy(), fawkes::NetworkConfiguration::copy(), fawkes::ConfigNetworkHandler::loop(), and AmclThread::loop().
|
protected |
Notify handlers for given path.
path | path to notify handlers for |
comment_changed | true if the change is about a comment change, false otherwise |
Definition at line 615 of file config.cpp.
References fawkes::Configuration::ValueIterator::next().
Referenced by fawkes::SQLiteConfiguration::erase(), fawkes::SQLiteConfiguration::erase_default(), fawkes::YamlConfiguration::fam_event(), fawkes::SQLiteConfiguration::set_bool(), fawkes::SQLiteConfiguration::set_comment(), fawkes::SQLiteConfiguration::set_default_bool(), fawkes::SQLiteConfiguration::set_default_comment(), fawkes::SQLiteConfiguration::set_default_float(), fawkes::SQLiteConfiguration::set_default_int(), fawkes::SQLiteConfiguration::set_default_string(), fawkes::SQLiteConfiguration::set_default_uint(), fawkes::SQLiteConfiguration::set_float(), fawkes::SQLiteConfiguration::set_int(), fawkes::SQLiteConfiguration::set_string(), and fawkes::SQLiteConfiguration::set_uint().
|
virtual |
Remove a configuration change handler.
The handler is removed from the change handler list and no longer called on config changes.
h | configuration change handler |
Reimplemented in fawkes::NetworkConfiguration.
Definition at line 564 of file config.cpp.
References fawkes::ConfigurationChangeHandler::config_monitor_prefix().
Referenced by ProcRRDThread::finalize(), MongoRRDThread::finalize(), StaticTransformsThread::finalize(), ConfigChangeWatcherTool::handle_signal(), fawkes::NetworkConfiguration::rem_change_handler(), fawkes::ConfigNetworkHandler::~ConfigNetworkHandler(), and fawkes::PluginManager::~PluginManager().
|
pure virtual |
Iterator with search results.
Returns an iterator that can be used to iterate over the search results. All values whose path start with the given strings are returned. A call like
is effectively the same as a call to iterator().
path | start of path |
Implemented in fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, fawkes::YamlConfiguration, and fawkes::MemoryConfiguration.
Referenced by BlackBoardLoggerPlugin::BlackBoardLoggerPlugin(), BlackBoardLogReplayPlugin::BlackBoardLogReplayPlugin(), BlackBoardSynchronizationPlugin::BlackBoardSynchronizationPlugin(), MongoDBThread::ClientConf::ClientConf(), ConfigCLIPSFeature::clips_context_destroyed(), MongoDBThread::delete_client(), DynamixelPlugin::DynamixelPlugin(), StaticTransformsThread::finalize(), FvRetrieverPlugin::FvRetrieverPlugin(), IMUPlugin::IMUPlugin(), GossipThread::init(), ProcRRDThread::init(), MongoRRDThread::init(), WebviewPtzCamThread::init(), MongoDBThread::init(), LaserFilterThread::init(), PlayerClientThread::init(), fawkes::PluginManager::init_pinfo_cache(), LaserClusterPlugin::LaserClusterPlugin(), LaserDeadSpotsDataFilter::LaserDeadSpotsDataFilter(), LaserFilterPlugin::LaserFilterPlugin(), LaserPlugin::LaserPlugin(), BlackBoardSynchronizationThread::loop(), PanTiltPlugin::PanTiltPlugin(), LaserFilterThread::wait_done(), and fawkes::LuaInterfaceImporter::~LuaInterfaceImporter().
|
pure virtual |
Set new value in configuration of type bool.
path | path to value |
b | new bool value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::ConfigNetworkHandler::loop().
|
pure virtual |
Set new value in configuration of type bool.
path | path to value |
b | new bool values |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::ConfigNetworkHandler::loop().
|
pure virtual |
Set new comment for existing value.
Works like the aforementioned method. Just takes an good ol' char array instead of a std::string.
path | path to value |
comment | new comment string |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
|
pure virtual |
Set new comment for existing value.
path | path to value |
comment | new comment string |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
|
pure virtual |
Set new default value in configuration of type bool.
path | path to value |
b | new bool value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::ConfigNetworkHandler::loop().
|
pure virtual |
Set new default comment for existing default configuration value.
Works like the aforementioned method. Just takes an good ol' char array instead of a std::string.
path | path to value |
comment | new comment string |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
|
pure virtual |
Set new default comment for existing default configuration value.
path | path to value |
comment | new comment string |
Implemented in fawkes::YamlConfiguration, fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
|
pure virtual |
Set new default value in configuration of type float.
path | path to value |
f | new float value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::ConfigNetworkHandler::loop().
|
pure virtual |
Set new default value in configuration of type int.
path | path to value |
i | new int value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::ConfigNetworkHandler::loop().
|
pure virtual |
Set new default value in configuration of type string.
path | path to value |
s | new string value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::ConfigNetworkHandler::loop().
|
pure virtual |
Set new default value in configuration of type string.
Works like the aforementioned method. Just takes an good ol' char array instead of a std::string.
path | path to value |
s | new string value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
|
pure virtual |
Set new default value in configuration of type unsigned int.
path | path to value |
uint | new unsigned int value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::ConfigNetworkHandler::loop().
|
pure virtual |
Set new value in configuration of type float.
path | path to value |
f | new float value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::ConfigNetworkHandler::loop(), and AmclThread::loop().
|
pure virtual |
Set new value in configuration of type float.
path | path to value |
f | new float values |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::ConfigNetworkHandler::loop().
|
pure virtual |
Set new value in configuration of type int.
path | path to value |
i | new int value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::ConfigNetworkHandler::loop().
|
pure virtual |
Set new value in configuration of type int.
path | path to value |
i | new int values |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::ConfigNetworkHandler::loop().
|
pure virtual |
Set new value in configuration of type string.
path | path to value |
s | new string value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by BlackBoardLoggerPlugin::BlackBoardLoggerPlugin(), Roomba500Thread::init(), fawkes::ConfigNetworkHandler::loop(), and MongoLogPlugin::MongoLogPlugin().
|
pure virtual |
Set new value in configuration of type string.
Works like the aforementioned method. Just takes an good ol' char array instead of a std::string.
path | path to value |
s | new string value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
|
pure virtual |
Set new value in configuration of type string.
path | path to value |
s | new string values |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::ConfigNetworkHandler::loop().
|
pure virtual |
Set new value in configuration of type string.
Works like the aforementioned method. Just takes an good ol' char array instead of a std::string.
path | path to value |
s | new string values |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
|
pure virtual |
Set new value in configuration of type unsigned int.
path | path to value |
uint | new unsigned int value |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::ConfigNetworkHandler::loop().
|
pure virtual |
Set new value in configuration of type unsigned int.
path | path to value |
uint | new unsigned int values |
Implemented in fawkes::NetworkConfiguration, fawkes::YamlConfiguration, fawkes::SQLiteConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::ConfigNetworkHandler::loop().
|
pure virtual |
Try to dump configuration.
For configuration methods that transform configuration files in a binary format this can be used to write out the text representation on shutdown of Fawkes.
Exception | thrown if dumping fails |
Implemented in fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, fawkes::YamlConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::FawkesMainThread::~FawkesMainThread().
|
pure virtual |
Try to lock the config.
Implemented in fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, fawkes::YamlConfiguration, and fawkes::MemoryConfiguration.
|
pure virtual |
Unlock the config.
Modifications and queries are possible again.
Implemented in fawkes::NetworkConfiguration, fawkes::SQLiteConfiguration, fawkes::YamlConfiguration, and fawkes::MemoryConfiguration.
Referenced by fawkes::SQLiteConfiguration::copy(), fawkes::NetworkConfiguration::copy(), fawkes::ConfigNetworkHandler::loop(), and AmclThread::loop().
|
protected |
|
protected |