void Rules::checkWatchedFile() { Poco::File file = ofFile(watchedFileName).getPocoFile(); Poco::Timestamp timestamp = file.getLastModified(); if (timestamp != watchedLastModified) { clear(); load(watchedFileName); ofNotifyEvent(fileReloaded, branches, this); watchedLastModified = timestamp; } }