| 44 | } |
| 45 | |
| 46 | void set(const char * key, const char * value) |
| 47 | { |
| 48 | if (!key || !*key) |
| 49 | { |
| 50 | throw Exception("Key has to be a non-empty string."); |
| 51 | } |
| 52 | if (value && *value) |
| 53 | { |
| 54 | m_customKeys[key] = value; |
| 55 | } |
| 56 | else |
| 57 | { |
| 58 | m_customKeys.erase(key); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | bool hasKey(const char * key) |
| 63 | { |
no test coverage detected