| 85 | |
| 86 | private: |
| 87 | std::string_view getValueName(int _index) const |
| 88 | { |
| 89 | if (_index < 0 || _index >= MAX) |
| 90 | return {}; |
| 91 | static const std::string_view values[MAX] = { |
| 92 | "Failed to open XML file", |
| 93 | "Failed to create XML file", |
| 94 | "XML file contain incorrect content", |
| 95 | "XML file contain not closed elements", |
| 96 | "XML file without declaration", |
| 97 | "XML file contain closed but not opened element", |
| 98 | "XML file contain inconsistent elements", |
| 99 | "XML file contain more than one declaration", |
| 100 | "XML file contain more than one root element", |
| 101 | "XML file contain incorrect attribute"}; |
| 102 | return values[_index]; |
| 103 | } |
| 104 | |
| 105 | private: |
| 106 | Enum mValue; |
no outgoing calls
no test coverage detected