add rule name alias for future use;

pull/70/head
Bryan Biedenkapp 1 year ago
parent 8f4c33c890
commit 582629c395

@ -409,6 +409,7 @@ namespace lookups
*/ */
TalkgroupRuleGroupVoice() : TalkgroupRuleGroupVoice() :
m_name(), m_name(),
m_nameAlias(),
m_config(), m_config(),
m_source() m_source()
{ {
@ -422,6 +423,7 @@ namespace lookups
TalkgroupRuleGroupVoice() TalkgroupRuleGroupVoice()
{ {
m_name = node["name"].as<std::string>(); m_name = node["name"].as<std::string>();
m_nameAlias = node["alias"].as<std::string>();
m_config = TalkgroupRuleConfig(node["config"]); m_config = TalkgroupRuleConfig(node["config"]);
m_source = TalkgroupRuleGroupVoiceSource(node["source"]); m_source = TalkgroupRuleGroupVoiceSource(node["source"]);
} }
@ -434,6 +436,7 @@ namespace lookups
{ {
if (this != &data) { if (this != &data) {
m_name = data.m_name; m_name = data.m_name;
m_nameAlias = data.m_nameAlias;
m_config = data.m_config; m_config = data.m_config;
m_source = data.m_source; m_source = data.m_source;
} }
@ -460,6 +463,7 @@ namespace lookups
{ {
// Get all the properties // Get all the properties
node["name"] = m_name; node["name"] = m_name;
node["alias"] = m_nameAlias;
yaml::Node config, source; yaml::Node config, source;
m_config.getYaml(config); m_config.getYaml(config);
@ -475,6 +479,10 @@ namespace lookups
* @brief Textual name for the routing rule. * @brief Textual name for the routing rule.
*/ */
__PROPERTY_PLAIN(std::string, name); __PROPERTY_PLAIN(std::string, name);
/**
* @brief (Optional) Secondary textual name for the routing rule.
*/
__PROPERTY_PLAIN(std::string, nameAlias);
/** /**
* @brief Configuration for the routing rule. * @brief Configuration for the routing rule.
*/ */

Loading…
Cancel
Save

Powered by TurnKey Linux.