void FileWatcher::pollAll() { // check each file: WatcherMap::iterator it = gWatchedFiles.begin(); while (it != gWatchedFiles.end()) { it->second.test(); it++; } }
FileWatcher::~FileWatcher(){ // check each file: WatcherMap::iterator it = gWatchedFiles.begin(); while (it != gWatchedFiles.end()) { it->second.remove(this); it++; } }