| 90 | |
| 91 | |
| 92 | void MapConfiguration::removeRaw(const std::string& key) |
| 93 | { |
| 94 | std::string prefix = key; |
| 95 | if (!prefix.empty()) prefix += '.'; |
| 96 | std::string::size_type psize = prefix.size(); |
| 97 | StringMap::iterator it = _map.begin(); |
| 98 | StringMap::iterator itCur; |
| 99 | while (it != _map.end()) |
| 100 | { |
| 101 | itCur = it++; |
| 102 | if ((itCur->first == key) || (itCur->first.compare(0, psize, prefix) == 0)) |
| 103 | { |
| 104 | _map.erase(itCur); |
| 105 | } |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | |
| 110 | MapConfiguration::iterator MapConfiguration::begin() const |