Beispiel #1
0
 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();
   }
 }
Beispiel #2
0
 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;
   }
 }
Beispiel #3
0
bool LogFileIsOlder(TCHAR *oldestname, TCHAR *thisname) {
  FILETIME ftold = LogFileDate(oldestname);
  FILETIME ftnew = LogFileDate(thisname);
  return (CompareFileTime(&ftold, &ftnew)>0);
}
Beispiel #4
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);
}