Changeset 538 for trunk/lib/File.cc


Ignore:
Timestamp:
Dec 27, 2007, 8:25:08 AM (14 years ago)
Author:
Peter Johansson
Message:

added ignore-cache option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r536 r538  
    189189
    190190
    191   const StatsCollection& File::parse(const bool verbose)
     191  const StatsCollection& File::parse(bool verbose, bool ignore)
    192192  {
    193193    if (verbose)
     
    201201        return stats_;
    202202      }
    203     }
     203      is.close();
     204    }
     205    else
     206      stats_.parse(path_);
    204207    if (!node_exist(cache_dir))
    205208      mkdir(cache_dir);
    206209    std::ofstream os(cache_file.c_str());
    207210    stats_.print(os);
     211    os.close();
    208212    return stats_;
    209213  }
Note: See TracChangeset for help on using the changeset viewer.