void Visit(Path path, Path filename) override { time_t this_time = LogFileDate(current_year, filename.c_str()); if (oldest_path.empty() || oldest_time > this_time) { oldest_time = this_time; oldest_path = path.c_str(); } }
virtual void Visit(const TCHAR* path, const TCHAR* filename) { time_t this_time = LogFileDate(current_year, filename); if (oldest_path.empty() || oldest_time > this_time) { oldest_time = this_time; oldest_path = path; } }
bool LogFileIsOlder(TCHAR *oldestname, TCHAR *thisname) { FILETIME ftold = LogFileDate(oldestname); FILETIME ftnew = LogFileDate(thisname); return (CompareFileTime(&ftold, &ftnew)>0); }
bool LogFileIsOlder(const NMEA_INFO &gps_info, TCHAR *oldestname, TCHAR *thisname) { FILETIME ftold = LogFileDate(gps_info, oldestname); FILETIME ftnew = LogFileDate(gps_info, thisname); return (CompareFileTime(&ftold, &ftnew)>0); }