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 1630 by tim, Thu Oct 21 21:31:39 2004 UTC vs.
Revision 1639 by tim, Fri Oct 22 23:09:57 2004 UTC

# Line 39 | Line 39 | namespace oopse{
39  
40      /**
41       * @class SnapshotManager SnapshotManager.hpp "brains/SnapshotManager.hpp"
42 <     * @brief
42 >     * @brief SnapshotManager class is an abstract class which maintains
43 >     * a series of snapshots.
44 >     *
45 >     * @see SimSnapshotManager
46 >     * @see PropSnapshotManager
47       */
48      class SnapshotManager {
49          public:
50  
51 <            bool forward();
51 >            virtual bool advance() = 0;
52  
53 <            bool backward();
53 >            Snapshot* getSnapshot(int id);
54 >            
55 >            Snapshot* getPrevSnapshot();
56  
57 <            bool move(int );
57 >            void setCurrentSnapshot();
58 >            
59 >            Snapshot* getCurrentSnapshot();
60  
61 <            Snapshot* getActiveSnapshot();
54 <
55 <            void setActiveSnapshot();
61 >            void setCurrentSnapshot();
62              
63              int getCapacity();
64  
65              void setCapacity();
66 +
67 +            void getNotifyStatus();
68 +            
69 +            void setNotifyStatus();
70 +
71 +            void attach(SnapshotObserver*);
72 +
73 +            void detach(SnapshotObserver*);
74 +
75 +            void notify();
76 +            
77          private:
78              vector<Snapshot*> snapshots_;
79 +            vector<SnapshotObserver*> observers_;
80      };
81  
82   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines