ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/io/StatWriter.hpp
(Generate patch)

Comparing branches/development/src/io/StatWriter.hpp (file contents):
Revision 1665 by gezelter, Tue Nov 22 20:38:56 2011 UTC vs.
Revision 1764 by gezelter, Tue Jul 3 18:32:27 2012 UTC

# Line 40 | Line 40
40   * [5]  Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011).
41   */
42  
43
44 /**
45 * @file StatWriter.hpp
46 * @author tlin
47 * @date 11/08/2004
48 * @time 10:03am
49 * @version 1.0
50 */
51
52
43   #ifndef IO_STATWRITER_HPP
44   #define IO_STATWRITER_HPP
55 #include <bitset>
56 #include <fstream>
57 #include <iostream>
58 #include <string>
59 #include <string.h>
45  
46   #include "brains/Stats.hpp"
47   #include "utils/StringTokenizer.hpp"
# Line 64 | Line 49 | namespace OpenMD {
49   #include "utils/simError.h"
50  
51   namespace OpenMD {
67
68  typedef std::bitset<Stats::ENDINDEX-Stats::BEGININDEX> StatsBitSet;
69
70  StatsBitSet parseStatFileFormat(const std::string& format);
52    
53    /**
54     * @class StatWriter StatWriter.hpp "io/StatWriter.hpp"
# Line 75 | Line 56 | namespace OpenMD {
56     */
57    class StatWriter {
58    public:
59 <    StatWriter(const std::string& filename, const StatsBitSet& mask);
59 >    StatWriter(const std::string& filename, Stats* stats);
60      ~StatWriter();
61  
62 <    void writeStat(const Stats& s);
63 <
83 <    StatsBitSet getMask() {
84 <      return mask_;
85 <    }
86 <        
62 >    void writeStat();
63 >            
64    private:
88
65      void writeTitle();
66 +    void writeReal(int i);
67 +    void writeVector(int i);
68 +    void writeMatrix(int i);
69          
70      std::ofstream statfile_;
71 <    StatsBitSet mask_;
93 <        
71 >    Stats* stats_;
72    };
95
73   }
74 < #endif //IO_STATWRITER_HPP
74 > #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines