Changeset 482 for trunk/lib/Stats.h


Ignore:
Timestamp:
Oct 13, 2007, 3:40:38 AM (16 years ago)
Author:
Peter Johansson
Message:

fixes #79 and #5. Only updating changed files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Stats.h

    r468 r482  
    3232
    3333#include <map>
     34#include <istream>
    3435#include <set>
    3536#include <string>
     
    104105    { return accumulated(total_, user).back(); }
    105106
     107    /**
     108       Load object from a stream.
     109       
     110       \return true if successful
     111     */
     112    bool load_cache(std::istream&);
     113
    106114    void parse(const std::string&);
    107115
     
    178186             const Parser::line_type&);
    179187
    180 
    181     /**
    182        Load object from a stream.
    183      */
    184     void load(std::istream&);
     188    // Change this string if cache format is changed in such a way
     189    // that all old cache files are obsolete.
     190    inline std::string end_of_cache(void) const {return "END OF OK CACHE FILE";}
     191    inline std::string code_cache(void) const {return "CACHE CODE";}
     192    inline std::string comments_cache(void) const {return "CACHE COMMENTS";}
     193    inline std::string empty_cache(void) const {return "CACHE EMPTY";}
     194    inline std::string total_cache(void) const {return "CACHE TOTAL";}
     195   
    185196
    186197    /**
Note: See TracChangeset for help on using the changeset viewer.