// ---------------------------- // VolumeFile_IO::removeHandler // ---------------------------- // Purpose: // Convenence function for removing objects from the map. // ---- Change History ---- // 11/13/2009 -- Joe R. -- Initially implemented. void VolumeFile_IO::removeHandler(const std::string& id) { for(HandlerMap::iterator i = handlerMap().begin(); i != handlerMap().end(); i++) { Handlers handlers; for(Handlers::iterator j = i->second.begin(); j != i->second.end(); j++) { if((*j)->id() != id) handlers.push_back(*j); } i->second = handlers; } }
// ---------------------------- // VolumeFile_IO::removeHandler // ---------------------------- // Purpose: // Convenence function for removing objects from the map. // ---- Change History ---- // 11/13/2009 -- Joe R. -- Initially implemented. void VolumeFile_IO::removeHandler(const Ptr& vfio) { for(HandlerMap::iterator i = handlerMap().begin(); i != handlerMap().end(); i++) { Handlers handlers; for(Handlers::iterator j = i->second.begin(); j != i->second.end(); j++) { if(*j != vfio) handlers.push_back(*j); } i->second = handlers; } }