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

Comparing trunk/src/brains/SnapshotManager.hpp (file contents):
Revision 246 by gezelter, Wed Jan 12 22:41:40 2005 UTC vs.
Revision 494 by tim, Wed Apr 13 22:43:43 2005 UTC

# Line 69 | Line 69 | namespace oopse{
69                  delete previousSnapshot_;
70              }
71              
72 <            virtual bool advance() = 0;
72 >            virtual bool advance() { return true; }
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);
96 >        private:
97 >            int storageLayout_;
98  
99 <            //void attach(SnapshotObserver*);
99 >        protected:
100  
101 <            //void detach(SnapshotObserver*);
103 <
104 <            //void notify();
105 <
106 <        protected:
107 <
108 <            SnapshotManager() : currentSnapshot_(NULL), previousSnapshot_(NULL) {
101 >            SnapshotManager(int storageLayout) : storageLayout_(storageLayout), currentSnapshot_(NULL), previousSnapshot_(NULL) {
102              }
103              
104              Snapshot* currentSnapshot_;
105              Snapshot* previousSnapshot_;
106              
114        private:
115            //vector<SnapshotObserver*> observers_;
107  
108      };
109  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines