| 135 | } |
| 136 | |
| 137 | std::vector<std::string> TriggerManager::getAllTriggersGroupNames( |
| 138 | const std::string& space) |
| 139 | { |
| 140 | if (m_allTriggers.find(space) != m_allTriggers.end()) |
| 141 | { |
| 142 | std::vector<std::string> allNames; |
| 143 | for (auto& spaceIt : m_allTriggers[space]) |
| 144 | { |
| 145 | allNames.push_back(spaceIt.first); |
| 146 | } |
| 147 | return allNames; |
| 148 | } |
| 149 | std::vector<std::string> namespaces(m_allTriggers.size()); |
| 150 | std::transform(m_allTriggers.begin(), m_allTriggers.end(), namespaces.begin(), |
| 151 | [](const auto& pair) { return pair.first; }); |
| 152 | throw Exceptions::UnknownTriggerNamespace(space, namespaces, EXC_INFO); |
| 153 | } |
| 154 | |
| 155 | void TriggerManager::removeTriggerGroup(TriggerGroup* trgGroup) |
| 156 | { |