コード例 #1
0
ファイル: IGCFileCleanup.cpp プロジェクト: Andy-1954/XCSoar
 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();
   }
 }
コード例 #2
0
ファイル: IGCFileCleanup.cpp プロジェクト: CnZoom/XcSoarPull
 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;
   }
 }
コード例 #3
0
ファイル: Logger.cpp プロジェクト: Turbo87/LK8000
bool LogFileIsOlder(TCHAR *oldestname, TCHAR *thisname) {
  FILETIME ftold = LogFileDate(oldestname);
  FILETIME ftnew = LogFileDate(thisname);
  return (CompareFileTime(&ftold, &ftnew)>0);
}
コード例 #4
0
ファイル: LoggerImpl.cpp プロジェクト: scottp/xcsoar
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);
}