| 334 | } |
| 335 | |
| 336 | const char * ViewingRules::getCustomKeyName(size_t ruleIndex, size_t key) const |
| 337 | { |
| 338 | m_impl->validatePosition(ruleIndex); |
| 339 | try |
| 340 | { |
| 341 | return m_impl->m_rules[ruleIndex]->m_customKeys.getName(key); |
| 342 | } |
| 343 | catch (Exception & e) |
| 344 | { |
| 345 | std::ostringstream oss; |
| 346 | oss << "Viewing rules: rule named '" << std::string(m_impl->m_rules[ruleIndex]->getName()) |
| 347 | << "' error: " << e.what(); |
| 348 | throw Exception(oss.str().c_str()); |
| 349 | } |
| 350 | } |
| 351 | |
| 352 | const char * ViewingRules::getCustomKeyValue(size_t ruleIndex, size_t key) const |
| 353 | { |
no test coverage detected