ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/io/StatWriter.hpp
(Generate patch)

Comparing trunk/OOPSE-4/src/io/StatWriter.hpp (file contents):
Revision 1930 by gezelter, Wed Jan 12 22:41:40 2005 UTC vs.
Revision 2204 by gezelter, Fri Apr 15 22:04:00 2005 UTC

# Line 1 | Line 1
1 < /*
1 > /*
2   * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved.
3   *
4   * The University of Notre Dame grants you ("Licensee") a
# Line 40 | Line 40
40   */
41  
42  
43 < /**
44 <  * @file StatWriter.hpp
45 <  * @author tlin
46 <  * @date 11/08/2004
47 <  * @time 10:03am
48 <  * @version 1.0
49 <  */
43 > /**
44 > * @file StatWriter.hpp
45 > * @author tlin
46 > * @date 11/08/2004
47 > * @time 10:03am
48 > * @version 1.0
49 > */
50  
51  
52   #ifndef IO_STATWRITER_HPP
# Line 60 | Line 60 | typedef std::bitset<Stats::ENDINDEX-Stats::BEGININDEX>
60  
61   namespace oopse {
62  
63 < typedef std::bitset<Stats::ENDINDEX-Stats::BEGININDEX> StatsBitSet;
63 >  typedef std::bitset<Stats::ENDINDEX-Stats::BEGININDEX> StatsBitSet;
64  
65 < /**
66 < * DefaultStatsBitSet includes
67 < *    StatsIndex::TIME
68 < *    StatsIndex::TOTAL_ENERGY
69 < *    StatsIndex::POTENTIAL_ENERGY
70 < *    StatsIndex::KINETIC_ENERGY
71 < *    StatsIndex::TEMPERATURE
72 < *    StatsIndex::PRESSURE
73 < *    StatsIndex::CONSERVED_QUANTITY
74 < */
75 < const StatsBitSet DefaultStatsBitSet(255ul);
65 >  /**
66 >   * DefaultStatsBitSet includes
67 >   *    StatsIndex::TIME
68 >   *    StatsIndex::TOTAL_ENERGY
69 >   *    StatsIndex::POTENTIAL_ENERGY
70 >   *    StatsIndex::KINETIC_ENERGY
71 >   *    StatsIndex::TEMPERATURE
72 >   *    StatsIndex::PRESSURE
73 >   *    StatsIndex::CONSERVED_QUANTITY
74 >   */
75 >  const StatsBitSet DefaultStatsBitSet(255ul);
76  
77  
78 < /**
79 < * @class StatWriter StatWriter.hpp "io/StatWriter.hpp"
80 < * @brief A configurable Statistics Writer
81 < */
82 < class StatWriter {
83 <    public:
84 <        StatWriter(const std::string& filename, const StatsBitSet& mask = DefaultStatsBitSet);
85 <        ~StatWriter();
78 >  /**
79 >   * @class StatWriter StatWriter.hpp "io/StatWriter.hpp"
80 >   * @brief A configurable Statistics Writer
81 >   */
82 >  class StatWriter {
83 >  public:
84 >    StatWriter(const std::string& filename, const StatsBitSet& mask = DefaultStatsBitSet);
85 >    ~StatWriter();
86  
87 <        void writeStat(const Stats& s);
87 >    void writeStat(const Stats& s);
88  
89 <        StatsBitSet getMask() {
90 <            return mask_;
91 <        }
89 >    StatsBitSet getMask() {
90 >      return mask_;
91 >    }
92          
93 <    private:
93 >  private:
94  
95 <        void writeTitle();
95 >    void writeTitle();
96          
97 <        std::ofstream statfile_;
98 <        StatsBitSet mask_;
97 >    std::ofstream statfile_;
98 >    StatsBitSet mask_;
99          
100 < };
100 >  };
101  
102   }
103   #endif //IO_STATWRITER_HPP

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines