![]() |
libcyberradio
22.01.24
|
WBDDC group component class for the NDR308-TS. More...
#include <WbddcGroupComponent.h>
Public Member Functions | |
| WbddcGroupComponent (int index=1, ::LibCyberRadio::Driver::RadioHandler *parent=NULL, bool debug=false) | |
| Constructs a WbddcGroupComponent object. More... | |
| virtual | ~WbddcGroupComponent () |
| Destroys a WbddcGroupComponent object. | |
| WbddcGroupComponent (const WbddcGroupComponent &other) | |
| Copies a WbddcGroupComponent object. More... | |
| virtual WbddcGroupComponent & | operator= (const WbddcGroupComponent &other) |
| Assignment operator for WbddcGroupComponent objects. More... | |
| virtual bool | enable (bool enabled=true) |
| Enables this component. More... | |
| virtual bool | setConfiguration (ConfigurationDict &cfg) |
| Sets the configuration dictionary for this component. More... | |
| virtual void | queryConfiguration () |
| Tells the component to query its hardware configuration in order to create its configuration dictionary. | |
| virtual BasicIntList | getMembers () const |
| Gets the list of group members. More... | |
| virtual bool | setMembers (const BasicIntList &groupMembers) |
| Sets the list of group members. More... | |
| virtual bool | addMember (int member) |
| Adds a WBDDC to the list of group members. More... | |
| virtual bool | removeMember (int member) |
| Removes a WBDDC from the list of group members. More... | |
| virtual int | getIndex () const |
| Gets the index number of the component. More... | |
| virtual void | setIndex (int index) |
| Sets the index number of the component. More... | |
| virtual RadioHandler * | getParent () const |
| Gets the "parent" radio handler for this component. More... | |
| virtual void | setParent (RadioHandler *parent) |
| Sets the "parent" radio handler for this component. More... | |
| virtual bool | disable () |
| Disables this component. More... | |
| virtual bool | isEnabled () const |
| Gets whether or not the component is enabled. More... | |
| virtual std::string | getName () const |
| Gets the name of the configurable object. More... | |
| virtual void | setName (const std::string &name) |
| Sets the name of the configurable object. More... | |
| virtual ConfigurationDict | getConfiguration () const |
| Gets the configuration dictionary for this object. More... | |
| virtual ConfigString | getConfigurationValue (const std::string &key) const |
| Gets a named configuration value as a string. More... | |
| virtual bool | getConfigurationValueAsBool (const std::string &key) const |
| Gets a named configuration value as a Boolean. More... | |
| virtual int | getConfigurationValueAsInt (const std::string &key) const |
| Gets a named configuration value as an integer value. More... | |
| virtual unsigned int | getConfigurationValueAsUInt (const std::string &key) const |
| Gets a named configuration value as an unsigned integer value. More... | |
| virtual double | getConfigurationValueAsDbl (const std::string &key) const |
| Gets a named configuration value as a double value. More... | |
| virtual bool | setConfigurationValue (const std::string &key, const std::string &value) |
| Sets a named configuration value to a string. More... | |
| virtual bool | setConfigurationValueToBool (const std::string &key, const bool value) |
| Sets a named configuration value to a Boolean. More... | |
| virtual bool | setConfigurationValueToInt (const std::string &key, const int value) |
| Sets a named configuration value to an integer value. More... | |
| virtual bool | setConfigurationValueToUInt (const std::string &key, const unsigned int value) |
| Sets a named configuration value to an unsigned integer value. More... | |
| virtual bool | setConfigurationValueToDbl (const std::string &key, const double value) |
| Sets a named configuration value to a double value. More... | |
| virtual void | setDebugName (const std::string &debug_name) |
| Sets the debug name for this object. More... | |
| virtual void | setDebugFile (FILE *debug_fp) |
| Sets the debug file pointer for this object. More... | |
| virtual void | setDebugTimeFormat (const std::string &debug_timefmt) |
| Sets the debug time format for this object. More... | |
| virtual int | debug (const char *format,...) |
| Outputs debug information. More... | |
| virtual const char * | debugBool (bool x) |
| Gets a debug output string for a Boolean value. More... | |
| virtual bool | isDebug () const |
| Gets whether this object produces debug output. More... | |
| virtual std::string | getDebugName () const |
| Gets the debug name for this object. More... | |
| virtual std::string | rawString (const std::string &data) |
| Gets a "raw" string representation of a given data string. More... | |
Protected Member Functions | |
| virtual void | initConfigurationDict () |
| Initializes the configuration dictionary, defining the allowed keys. | |
| virtual void | updateConfigurationDict () |
| Updates the configuration dictionary from component settings. | |
| virtual std::string | getMembersString () |
| Gets the string representation of the member list. More... | |
| virtual bool | executeWbddcGroupEnableQuery (int index, bool &enabled) |
| Executes the WBDDC group enable query command. More... | |
| virtual bool | executeWbddcGroupEnableCommand (int index, bool &enabled) |
| Executes the WBDDC group enable command. More... | |
| virtual bool | executeWbddcGroupQuery (int index, BasicIntList &groupMembers) |
| Executes the WBDDC group configuration query command. More... | |
| virtual bool | executeWbddcGroupCommand (int index, BasicIntList &groupMembers) |
| Executes the WBDDC group configuration set command. More... | |
| virtual bool | executeWbddcGroupMemberQuery (int index, int groupMember, bool &isMember) |
| Executes the WBDDC group member query command. More... | |
| virtual bool | executeWbddcGroupMemberCommand (int index, int groupMember, bool &isMember) |
| Executes the WBDDC group member set command. More... | |
| virtual ConfigurationDict | normalizedConfigurationDict (const ConfigurationDict &cfg) |
| Normalizes an incoming configuration dictionary. More... | |
| virtual std::string | normalizedBool (const std::string &val) |
| Normalizes a Boolean string value. More... | |
| virtual void | dumpConfiguration () |
| Dumps this object's configuration dictionary to debug output. | |
WBDDC group component class for the NDR308-TS.
Configuration dictionary elements:
Definition at line 45 of file WbddcGroupComponent.h.
| WbddcGroupComponent | ( | int | index = 1, |
| ::LibCyberRadio::Driver::RadioHandler * | parent = NULL, |
||
| bool | debug = false |
||
| ) |
Constructs a WbddcGroupComponent object.
| index | The index number of this component. |
| parent | A pointer to the RadioHandler object that "owns" this component. |
| debug | Whether the component supports debug output. |
Definition at line 24 of file WbddcGroupComponent.cpp.
| WbddcGroupComponent | ( | const WbddcGroupComponent & | other | ) |
Copies a WbddcGroupComponent object.
| other | The WbddcGroupComponent object to copy. |
Definition at line 43 of file WbddcGroupComponent.cpp.
|
virtualinherited |
Adds a WBDDC to the list of group members.
| member | WBDDC to add. |
Definition at line 158 of file WbddcGroupComponent.cpp.
|
virtualinherited |
Outputs debug information.
This method follows the same semantics as printf(). Output is preceded by a timestamp and the name of the object, if provided.
| format | The printf()-style format string. |
| ... | Comma-separated list of arguments to print. Note that these need to be arguments that can be supported natively through printf(). |
Definition at line 95 of file Debuggable.cpp.
|
virtualinherited |
Gets a debug output string for a Boolean value.
| x | Boolean value |
Definition at line 126 of file Debuggable.cpp.
|
virtualinherited |
Disables this component.
Definition at line 76 of file RadioComponent.cpp.
|
virtualinherited |
Enables this component.
| enabled | Whether or not this component should be enabled. |
Reimplemented from RadioComponent.
Definition at line 59 of file WbddcGroupComponent.cpp.
|
protectedvirtualinherited |
Executes the WBDDC group configuration set command.
| index | WBDDC group index. |
| groupMembers | List of WBDDC group members. |
Definition at line 311 of file WbddcGroupComponent.cpp.
|
protectedvirtualinherited |
Executes the WBDDC group enable command.
| index | WBDDC group index. |
| enabled | Whether or not this group is enabled. |
Definition at line 263 of file WbddcGroupComponent.cpp.
|
protectedvirtualinherited |
Executes the WBDDC group enable query command.
| index | WBDDC group index. |
| enabled | Whether or not this group is enabled [output]. |
Reimplemented in WbddcGroupComponent.
Definition at line 236 of file WbddcGroupComponent.cpp.
|
protectedvirtualinherited |
Executes the WBDDC group member set command.
| index | WBDDC group index. |
| groupMember | Group member index. |
| isMember | True if the WBDDC is a member of the group. |
Definition at line 362 of file WbddcGroupComponent.cpp.
|
protectedvirtualinherited |
Executes the WBDDC group member query command.
| index | WBDDC group index. |
| groupMember | Group member index. |
| isMember | True if the WBDDC is a member of the group [output]. |
Reimplemented in WbddcGroupComponent.
Definition at line 330 of file WbddcGroupComponent.cpp.
|
protectedvirtualinherited |
Executes the WBDDC group configuration query command.
| index | WBDDC group index. |
| groupMembers | List of WBDDC group members [output]. |
Definition at line 286 of file WbddcGroupComponent.cpp.
|
virtualinherited |
Gets the configuration dictionary for this object.
Definition at line 93 of file Configurable.cpp.
|
virtualinherited |
Gets a named configuration value as a string.
| key | The key string in the configuration dictionary. |
Definition at line 98 of file Configurable.cpp.
|
virtualinherited |
Gets a named configuration value as a Boolean.
| key | The key string in the configuration dictionary. |
Definition at line 109 of file Configurable.cpp.
|
virtualinherited |
Gets a named configuration value as a double value.
| key | The key string in the configuration dictionary. |
Definition at line 148 of file Configurable.cpp.
|
virtualinherited |
Gets a named configuration value as an integer value.
| key | The key string in the configuration dictionary. |
Definition at line 122 of file Configurable.cpp.
|
virtualinherited |
Gets a named configuration value as an unsigned integer value.
| key | The key string in the configuration dictionary. |
Definition at line 135 of file Configurable.cpp.
|
virtualinherited |
Gets the debug name for this object.
Definition at line 138 of file Debuggable.cpp.
|
virtualinherited |
Gets the index number of the component.
Definition at line 56 of file RadioComponent.cpp.
|
virtualinherited |
Gets the list of group members.
Definition at line 134 of file WbddcGroupComponent.cpp.
|
protectedvirtualinherited |
Gets the string representation of the member list.
Definition at line 223 of file WbddcGroupComponent.cpp.
|
virtualinherited |
Gets the name of the configurable object.
Definition at line 83 of file Configurable.cpp.
|
virtualinherited |
Gets the "parent" radio handler for this component.
Definition at line 66 of file RadioComponent.cpp.
|
virtualinherited |
Gets whether this object produces debug output.
Definition at line 133 of file Debuggable.cpp.
|
virtualinherited |
Gets whether or not the component is enabled.
Definition at line 88 of file RadioComponent.cpp.
|
protectedvirtualinherited |
Normalizes a Boolean string value.
Definition at line 241 of file Configurable.cpp.
|
protectedvirtualinherited |
Normalizes an incoming configuration dictionary.
"Normalizing" a configuration dictionary replaces certain strings representing Boolean values ("yes", "on", "true", "no", "off", and "false", case is irrelevant) with standard values ("0" and "1").
Definition at line 232 of file Configurable.cpp.
|
virtual |
Assignment operator for WbddcGroupComponent objects.
| other | The WbddcComponent object to copy. |
Definition at line 48 of file WbddcGroupComponent.cpp.
|
virtualinherited |
Gets a "raw" string representation of a given data string.
"Raw" string representations mimic Python string representations. Whitespace characters are denoted by backslash representations ("\\r", "\\n", "\\t", "\\v", "\\f"), while other non-printable characters are represented with hex representation ("\\x00", etc.)
| data | Data string |
Definition at line 143 of file Debuggable.cpp.
|
virtualinherited |
Removes a WBDDC from the list of group members.
| member | WBDDC to remove. |
Definition at line 181 of file WbddcGroupComponent.cpp.
|
virtualinherited |
Sets the configuration dictionary for this component.
| cfg | The component configuration dictionary. |
Reimplemented from RadioComponent.
Definition at line 75 of file WbddcGroupComponent.cpp.
|
virtualinherited |
Sets a named configuration value to a string.
| key | The key string in the configuration dictionary. |
| value | The new value. |
Definition at line 177 of file Configurable.cpp.
|
virtualinherited |
Sets a named configuration value to a Boolean.
| key | The key string in the configuration dictionary. |
| value | The new value. |
Definition at line 193 of file Configurable.cpp.
|
virtualinherited |
Sets a named configuration value to a double value.
| key | The key string in the configuration dictionary. |
| value | The new value. |
Definition at line 211 of file Configurable.cpp.
|
virtualinherited |
Sets a named configuration value to an integer value.
| key | The key string in the configuration dictionary. |
| value | The new value. |
Definition at line 199 of file Configurable.cpp.
|
virtualinherited |
Sets a named configuration value to an unsigned integer value.
| key | The key string in the configuration dictionary. |
| value | The new value. |
Definition at line 205 of file Configurable.cpp.
|
virtualinherited |
Sets the debug file pointer for this object.
| debug_fp | File to send debug output to. |
Definition at line 81 of file Debuggable.cpp.
|
virtualinherited |
Sets the debug name for this object.
Use this method to set unique debug names for objects of the same class for easy differentiation.
| debug_name | Name for identifying this object in debug output. |
Definition at line 74 of file Debuggable.cpp.
|
virtualinherited |
Sets the debug time format for this object.
| debug_timefmt | Format string for displaying timestamp, as compatible with strftime(). If this is an empty string, don't display a timestamp. |
Definition at line 88 of file Debuggable.cpp.
|
virtualinherited |
Sets the index number of the component.
| index | The index number. |
Definition at line 61 of file RadioComponent.cpp.
|
virtualinherited |
Sets the list of group members.
| groupMembers | List of WBDDC group members. |
Definition at line 139 of file WbddcGroupComponent.cpp.
|
virtualinherited |
Sets the name of the configurable object.
| name | The new name. |
Definition at line 88 of file Configurable.cpp.
|
virtualinherited |
Sets the "parent" radio handler for this component.
| parent | A pointer to the RadioHandler object. |
Definition at line 71 of file RadioComponent.cpp.