| 767 | } |
| 768 | |
| 769 | const char * FileRules::getCustomKeyName(size_t ruleIndex, size_t key) const |
| 770 | { |
| 771 | m_impl->validatePosition(ruleIndex, Impl::DEFAULT_ALLOWED); |
| 772 | try |
| 773 | { |
| 774 | return m_impl->m_rules[ruleIndex]->m_customKeys.getName(key); |
| 775 | } |
| 776 | catch (Exception & e) |
| 777 | { |
| 778 | std::ostringstream oss; |
| 779 | oss << "File rules: the custom key access for file rule '" |
| 780 | << std::string(m_impl->m_rules[ruleIndex]->getName()) |
| 781 | << "' failed: " << e.what(); |
| 782 | throw Exception(oss.str().c_str()); |
| 783 | } |
| 784 | } |
| 785 | |
| 786 | const char * FileRules::getCustomKeyValue(size_t ruleIndex, size_t key) const |
| 787 | { |