mirror of
https://github.com/nasa/trick.git
synced 2025-01-13 16:30:18 +00:00
25 lines
776 B
Plaintext
25 lines
776 B
Plaintext
|
##include "er7_utils/CheckpointHelper/Manager.hh"
|
||
|
##include "er7_utils/CheckpointHelper/CheckpointItem.hh"
|
||
|
##include "er7_utils/CheckpointHelper/InputAllocsChkptRestart.hh"
|
||
|
|
||
|
class CheckpointHelperSimObject : public Trick::SimObject {
|
||
|
public:
|
||
|
CheckpointHelper::Manager manager;
|
||
|
CheckpointHelper::InputAllocsChkptRestart inputAllocs;
|
||
|
|
||
|
CheckpointHelperSimObject() {
|
||
|
P1 ("initialization") manager.processConstructorAllocs();
|
||
|
|
||
|
("checkpoint") manager.checkpoint();
|
||
|
("checkpoint") inputAllocs.writeChkptFile();
|
||
|
|
||
|
P59000 ("preload_checkpoint") inputAllocs.loadChkptFile();
|
||
|
("preload_checkpoint") manager.processConstructorAllocs();
|
||
|
("restart") manager.restart();
|
||
|
}
|
||
|
};
|
||
|
|
||
|
CheckpointHelperSimObject checkpointHelper;
|
||
|
|
||
|
|