ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-4/src/brains/SnapshotManager.hpp
(Generate patch)

Comparing branches/new_design/OOPSE-4/src/brains/SnapshotManager.hpp (file contents):
Revision 1683, Thu Oct 28 22:34:02 2004 UTC vs.
Revision 1696 by tim, Tue Nov 2 15:23:46 2004 UTC

# Line 47 | Line 47 | namespace oopse{
47       */
48      class SnapshotManager {
49          public:
50 <            SnapshotManager() : currentSnapshot_(NULL), previousSnapshot_(NULL) {
50 >
51 >            virtual ~SnapshotManager() {
52 >                delete currentSnapshot_;
53 >                delete previousSnapshot_;
54              }
55 <            virtual ~SnapshotManager();
55 >            
56              virtual bool advance() = 0;
57  
58              virtual Snapshot* getSnapshot(int id) = 0;
# Line 74 | Line 77 | namespace oopse{
77  
78              virtual void setCapacity(int capacity);
79  
80 <            bool getNotifyStatus();
80 >            //bool getNotifyStatus();
81              
82 <            void setNotifyStatus(bool status);
82 >            //void setNotifyStatus(bool status);
83  
84 <            void attach(SnapshotObserver*);
84 >            //void attach(SnapshotObserver*);
85  
86 <            void detach(SnapshotObserver*);
86 >            //void detach(SnapshotObserver*);
87  
88 <            void notify();
88 >            //void notify();
89  
90          protected:
91 +
92 +            SnapshotManager() : currentSnapshot_(NULL), previousSnapshot_(NULL) {
93 +            }
94 +            
95              Snapshot* currentSnapshot_;
96              Snapshot* previousSnapshot_;
97              
98          private:
99 <            vector<SnapshotObserver*> observers_;
99 >            //vector<SnapshotObserver*> observers_;
100  
101      };
102  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines