trick/test/SIM_test_templates/S_define
Alex Lin bf80dcc03f Split test sims and fun sims into separate directories.
Gave each sim their own model directory, or in some cases just
a header file.  Each sim in the test directory is now independent
of each other. Modifying one test will not affect any other test.

refs #191
2016-02-25 14:40:55 -06:00

30 lines
572 B
Plaintext

#include "sim_objects/default_trick_sys.sm"
##include "TemplateTest.hh"
class templateSimObject : public Trick::SimObject {
public:
TemplateTest tobj ;
templateSimObject() {
(1.0, "scheduled") trick_ret = print() ;
}
int print() { std::cout << "In print()" << std::endl ; return 0 ; } ;
} ;
// Instantiations
templateSimObject tso ;
// Connect objects
void create_connections() {
// Set the default termination time
trick_sys.sched.set_terminate_time(1.0) ;
trick_sys.sched.set_freeze_frame(0.10) ;
}