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

Comparing trunk/OOPSE-4/src/applications/staticProps/StaticAnalyser.hpp (file contents):
Revision 2240 by tim, Thu May 26 22:45:00 2005 UTC vs.
Revision 3054 by gezelter, Wed Oct 18 21:58:48 2006 UTC

# Line 45 | Line 45 | class StaticAnalyser{
45   #include <string>
46   #include "brains/SimInfo.hpp"
47  
48 < class StaticAnalyser{
49 <    public:
50 <        StaticAnalyser(SimInfo* info, const std::string& filename) : info_(info), currentSnapshot_(NULL), dumpFilename_(filename), step_(1) {}
51 <        virtual ~StaticAnalyser() {}
52 <        virtual void process()=0;
48 >  class StaticAnalyser{
49 >  public:
50 >    StaticAnalyser(SimInfo* info, const std::string& filename) : info_(info), currentSnapshot_(NULL), dumpFilename_(filename), step_(1), usePeriodicBoundaryConditions_(info->getSimParams()->getUsePeriodicBoundaryConditions()) {}
51 >    virtual ~StaticAnalyser() {}
52 >    virtual void process()=0;
53  
54 <        void setOutputName(const std::string& filename) {
55 <          outputFilename_ = filename;
56 <        }
54 >    void setOutputName(const std::string& filename) {
55 >      outputFilename_ = filename;
56 >    }
57          
58 <        const std::string& getOutputFileName() const {
59 <          return outputFilename_;
60 <        }
58 >    const std::string& getOutputFileName() const {
59 >      return outputFilename_;
60 >    }
61          
62 <        void setStep(int step) {
63 <          assert(step > 0);
64 <          step_ =step;    
65 <        }
62 >    void setStep(int step) {
63 >      assert(step > 0);
64 >      step_ =step;    
65 >    }
66  
67 <        int getStep() { return step_;}
67 >    int getStep() { return step_;}
68  
69 <    protected:
70 <        SimInfo* info_;
71 <        Snapshot* currentSnapshot_;
72 <        std::string dumpFilename_;        
73 <        std::string outputFilename_;
74 <        int step_;        
75 < };
69 >  protected:
70 >    SimInfo* info_;
71 >    Snapshot* currentSnapshot_;
72 >    std::string dumpFilename_;        
73 >    std::string outputFilename_;
74 >    int step_;
75 >    bool usePeriodicBoundaryConditions_;
76 >  };
77  
78   }
79   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines