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

Comparing trunk/OOPSE-3.0/src/brains/SnapshotManager.hpp (file contents):
Revision 1930 by gezelter, Wed Jan 12 22:41:40 2005 UTC vs.
Revision 2002 by tim, Sun Feb 13 06:57:48 2005 UTC

# Line 69 | Line 69 | namespace oopse{
69                  delete previousSnapshot_;
70              }
71              
72 <            virtual bool advance() = 0;
72 >            virtual bool advance() {}
73  
74              virtual Snapshot* getSnapshot(int id) = 0;
75  
# Line 88 | Line 88 | namespace oopse{
88              Snapshot* getCurrentSnapshot() {
89                  return currentSnapshot_;
90              }
91            
92            virtual int getCapacity() = 0;
91  
92 <            virtual void setCapacity(int capacity) = 0;
92 >            int getStorageLayout() {
93 >                return storageLayout_;
94 >            }
95  
96            //bool getNotifyStatus();
97            
98            //void setNotifyStatus(bool status);
99
100            //void attach(SnapshotObserver*);
101
102            //void detach(SnapshotObserver*);
103
104            //void notify();
105
96          protected:
97  
98 <            SnapshotManager() : currentSnapshot_(NULL), previousSnapshot_(NULL) {
98 >            SnapshotManager(int storageLayout) : storageLayout_(storageLayout), currentSnapshot_(NULL), previousSnapshot_(NULL) {
99              }
100              
101              Snapshot* currentSnapshot_;
102              Snapshot* previousSnapshot_;
103              
104          private:
105 <            //vector<SnapshotObserver*> observers_;
105 >            int storageLayout_;
106  
107      };
108  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines