| 4279 | } |
| 4280 | |
| 4281 | void Config::removeActiveView(const char * view) |
| 4282 | { |
| 4283 | if( !view || !view[0] ) |
| 4284 | { |
| 4285 | throw Exception("Active view could not be removed from config, view name was empty."); |
| 4286 | } |
| 4287 | |
| 4288 | auto it = std::find( getImpl()->m_activeViews.begin(), |
| 4289 | getImpl()->m_activeViews.end(), view ); |
| 4290 | |
| 4291 | if(it!=getImpl()->m_activeViews.end()) |
| 4292 | { |
| 4293 | getImpl()->m_activeViews.erase(it); |
| 4294 | } |
| 4295 | else |
| 4296 | { |
| 4297 | std::ostringstream os; |
| 4298 | os << "Active view could not be removed from config, view '" |
| 4299 | << view << "' was not found."; |
| 4300 | throw Exception(os.str().c_str()); |
| 4301 | } |
| 4302 | |
| 4303 | getImpl()->m_displayCache.clear(); |
| 4304 | AutoMutex lock(getImpl()->m_cacheidMutex); |
| 4305 | getImpl()->resetCacheIDs(); |
| 4306 | } |
| 4307 | |
| 4308 | void Config::clearActiveViews() |
| 4309 | { |