32 |
|
*/ |
33 |
|
#ifndef BRAINS_SNAPSHOTMANAGER_HPP |
34 |
|
#define BRAINS_SNAPSHOTMANAGER_HPP |
35 |
+ |
|
36 |
+ |
#include "brains/Snapshot.hpp" |
37 |
+ |
|
38 |
|
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 |
< |
getActiveFrame(); |
51 |
< |
|
52 |
< |
setActiveFrame(); |
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 |
|
} |