| 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 | 
  | 
} |