| 134 | template<typename T> |
| 135 | requires Base::XMLReader::instantiated<T> |
| 136 | T Base::XMLReader::getAttribute(const char* AttrName, T defaultValue) const |
| 137 | { |
| 138 | auto pos = AttrMap.find(AttrName); |
| 139 | if (pos == AttrMap.end()) { |
| 140 | return defaultValue; |
| 141 | } |
| 142 | const char* rawValue = pos->second.c_str(); |
| 143 | return readerCast<T>(rawValue); |
| 144 | } |
| 145 | |
| 146 | template<typename T> |
| 147 | requires Base::XMLReader::instantiated<T> |
no test coverage detected