Пример #1
0
bool
RasterWeather::ExistsItem(struct zzip_dir *dir, const TCHAR* name,
                          unsigned time_index) const
{
  char filename[MAX_PATH];
  NarrowWeatherFilename(filename, name, time_index);

  ZZIP_STAT st;
  return zzip_dir_stat(dir, filename, &st, 0) == 0;
}
Пример #2
0
bool
RasterWeatherStore::ExistsItem(struct zzip_dir *dir, Path name,
                               unsigned time_index)
{
    char filename[MAX_PATH];
    if (!NarrowWeatherFilename(filename, name, time_index))
        return false;

    ZZIP_STAT st;
    return zzip_dir_stat(dir, filename, &st, 0) == 0;
}