40 |
|
*/ |
41 |
|
#ifndef BRAINS_BLOCKSNAPSHOTMANAGER_HPP |
42 |
|
#define BRAINS_BLOCKSNAPSHOTMANAGER_HPP |
43 |
+ |
#include <vector> |
44 |
|
|
45 |
|
#include "brains/SnapshotManager.hpp" |
46 |
|
namespace oopse { |
54 |
|
* @class BlockSnapshotManager |
55 |
|
* @todo document |
56 |
|
*/ |
57 |
< |
class BlockSnapshotMananger : public SnapshotManager{ |
57 |
> |
class BlockSnapshotManager : public SnapshotManager{ |
58 |
|
|
59 |
|
public: |
60 |
< |
BlockSnapshotMananger(SimInfo* info, const std::string& filename, int storageLayout, int blockCapacity = 2); |
61 |
< |
~BlockSnapshotMananger(); |
60 |
> |
BlockSnapshotManager(SimInfo* info, const std::string& filename, int storageLayout, int blockCapacity = 2); |
61 |
> |
~BlockSnapshotManager(); |
62 |
|
|
63 |
< |
virtual Snapshot* getSnapshot(int id); |
63 |
> |
virtual Snapshot* getSnapshot(int id) { return snapshots_[id]; } |
64 |
|
|
65 |
|
/** Returns number of snapshot blocks in this BlockSnapshotManager*/ |
66 |
|
int getNBlocks() { |
92 |
|
Snapshot* loadFrame(int frame); |
93 |
|
|
94 |
|
SimInfo* info_; |
94 |
– |
int storageLayout_; |
95 |
|
int blockCapacity_; |
96 |
|
|
97 |
|
std::vector<Snapshot*> snapshots_; |