25 |
|
|
26 |
|
#include "brains/SimInfo.hpp" |
27 |
|
#include "brains/SimSnapshotManager.hpp" |
28 |
< |
|
28 |
> |
#include "utils/simError.h" |
29 |
|
namespace oopse { |
30 |
|
|
31 |
|
SimSnapshotManager::SimSnapshotManager(SimInfo* info) : info_(info){ |
58 |
|
return 2; |
59 |
|
} |
60 |
|
|
61 |
< |
void SimSnapshotManager::setCapacity(int capacity); |
61 |
> |
void SimSnapshotManager::setCapacity(int capacity) { |
62 |
|
//give warning message |
63 |
+ |
sprintf( painCave.errMsg, |
64 |
+ |
"SimSnapshotManager error: can not set capacity for SimSnapshotManager.\n" ); |
65 |
+ |
painCave.isFatal = 0; |
66 |
+ |
simError(); |
67 |
+ |
} |
68 |
+ |
|
69 |
|
} //namespace oopse |