11 #include "LibCyberRadio/Driver/RadioHandler.h" 12 #include "LibCyberRadio/Driver/RadioComponent.h" 39 _parent(other._parent),
40 _enabled(other._enabled)
49 _index = other._index;
50 _parent = other._parent;
51 _enabled = other._enabled;
102 ret =
enable( _config[
"enable"].asBool() );
118 _config[
"enable"] = _enabled;
125 if ( _config.
hasKey(
"enable") )
virtual void updateConfigurationDict()
Updates the configuration dictionary from component settings.
RadioComponent(const std::string &name="<unknown>", int index=0, RadioHandler *parent=NULL, bool debug=false)
Constructs a RadioComponent object.
Base hardware component class.
virtual bool hasKey(const std::string &key) const
Determines if the dictionary has the given key.
virtual bool setConfiguration(ConfigurationDict &cfg)
Sets the configuration dictionary for this component.
virtual bool setConfigurationValueToBool(const std::string &key, const bool value)
Sets a named configuration value to a Boolean.
virtual RadioComponent & operator=(const RadioComponent &other)
Assignment operator for RadioComponent objects.
virtual bool isEnabled() const
Gets whether or not the component is enabled.
virtual void setIndex(int index)
Sets the index number of the component.
virtual bool enable(bool enabled=true)
Enables this component.
Generic radio handler class.
virtual void initConfigurationDict()
Initializes the configuration dictionary, defining the allowed keys.
Defines functionality for LibCyberRadio applications.
A configuration dictionary.
virtual bool disable()
Disables this component.
virtual RadioHandler * getParent() const
Gets the "parent" radio handler for this component.
virtual int getIndex() const
Gets the index number of the component.
virtual Configurable & operator=(const Configurable &other)
Assignment operator for Configurable objects.
virtual bool setConfiguration(ConfigurationDict &cfg)
Sets the configuration dictionary for this object.
virtual void queryConfiguration()
Tells the component to query its hardware configuration in order to create its configuration dictiona...
Base configurable object class.
virtual void setParent(RadioHandler *parent)
Sets the "parent" radio handler for this component.
virtual ~RadioComponent()
Destroys a RadioComponent object.