trick/trick_source/er7_utils/CheckpointHelper/CheckpointHelper.sm

25 lines
776 B
Plaintext
Raw Normal View History

##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;