| 1 | < | /* | 
| 1 | > | /* | 
| 2 |  | * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. | 
| 3 |  | * | 
| 4 |  | * The University of Notre Dame grants you ("Licensee") a | 
| 39 |  | * such damages. | 
| 40 |  | */ | 
| 41 |  |  | 
| 42 | < | /** | 
| 43 | < | * @file SimSnapshotManager.hpp | 
| 44 | < | * @author tlin | 
| 45 | < | * @date 10/20/2004 | 
| 46 | < | * @time 23:56am | 
| 47 | < | * @version 1.0 | 
| 48 | < | */ | 
| 42 | > | /** | 
| 43 | > | * @file SimSnapshotManager.hpp | 
| 44 | > | * @author tlin | 
| 45 | > | * @date 10/20/2004 | 
| 46 | > | * @time 23:56am | 
| 47 | > | * @version 1.0 | 
| 48 | > | */ | 
| 49 |  | #ifndef BRAINS_SIMSNAPSHOTMANAGER_HPP | 
| 50 |  | #define BRAINS_SIMSNAPSHOTMANAGER_HPP | 
| 51 |  |  | 
| 54 |  |  | 
| 55 |  | namespace oopse{ | 
| 56 |  |  | 
| 57 | < | //forward declaration | 
| 58 | < | class SimInfo; | 
| 59 | < | /** | 
| 60 | < | * @class SimSnapshotManager SimSnapshotManager.hpp "brains/SimSnapshotManager.hpp" | 
| 61 | < | * @brief SimSnapshotManager class is the concrete snapshot manager for actual simulation | 
| 62 | < | * SimSnapshotManager only maintains two snapshots. | 
| 63 | < | * @see PropSimSnapshotManager | 
| 64 | < | */ | 
| 65 | < | class SimSnapshotManager : public SnapshotManager { | 
| 66 | < | public: | 
| 67 | < | SimSnapshotManager(SimInfo* info, int storageLayout); | 
| 68 | < | ~SimSnapshotManager(); | 
| 69 | < | virtual bool advance(); | 
| 57 | > | //forward declaration | 
| 58 | > | class SimInfo; | 
| 59 | > | /** | 
| 60 | > | * @class SimSnapshotManager SimSnapshotManager.hpp "brains/SimSnapshotManager.hpp" | 
| 61 | > | * @brief SimSnapshotManager class is the concrete snapshot manager for actual simulation | 
| 62 | > | * SimSnapshotManager only maintains two snapshots. | 
| 63 | > | * @see PropSimSnapshotManager | 
| 64 | > | */ | 
| 65 | > | class SimSnapshotManager : public SnapshotManager { | 
| 66 | > | public: | 
| 67 | > | SimSnapshotManager(SimInfo* info, int storageLayout = 255); | 
| 68 | > | ~SimSnapshotManager(); | 
| 69 | > | virtual bool advance(); | 
| 70 |  |  | 
| 71 | < | virtual Snapshot* getSnapshot(int id); | 
| 71 | > | virtual Snapshot* getSnapshot(int id); | 
| 72 |  |  | 
| 73 | < | virtual int getCapacity(); | 
| 73 | > | virtual int getCapacity(); | 
| 74 |  |  | 
| 75 | < | virtual void setCapacity(int capacity); | 
| 75 | > | virtual void setCapacity(int capacity); | 
| 76 |  |  | 
| 77 | < | private: | 
| 78 | < | SimInfo* info_; | 
| 79 | < | }; | 
| 77 | > | private: | 
| 78 | > | SimInfo* info_; | 
| 79 | > | }; | 
| 80 |  |  | 
| 81 |  | } | 
| 82 |  | #endif //BRAINS_SIMSNAPSHOTMANAGER_HPP |