| 350 | } |
| 351 | |
| 352 | const char * ViewingRules::getCustomKeyValue(size_t ruleIndex, size_t key) const |
| 353 | { |
| 354 | m_impl->validatePosition(ruleIndex); |
| 355 | try |
| 356 | { |
| 357 | return m_impl->m_rules[ruleIndex]->m_customKeys.getValue(key); |
| 358 | } |
| 359 | catch (Exception & e) |
| 360 | { |
| 361 | std::ostringstream oss; |
| 362 | oss << "Viewing rules: rule named '" << std::string(m_impl->m_rules[ruleIndex]->getName()) |
| 363 | << "' error: " << e.what(); |
| 364 | throw Exception(oss.str().c_str()); |
| 365 | } |
| 366 | } |
| 367 | |
| 368 | void ViewingRules::setCustomKey(size_t ruleIndex, const char * key, const char * value) |
| 369 | { |
no test coverage detected