mirror of
https://github.com/nasa/trick.git
synced 2024-12-19 05:07:54 +00:00
14a75508a3
Changed all header file once include variables to follow the same naming convention and not start with any underscores. Also deleted old incorrect copyright notices. Also removed $Id: tags from all files. Fixes #14. Fixes #22.
30 lines
588 B
Plaintext
30 lines
588 B
Plaintext
#include "sim_objects/default_trick_sys.sm"
|
|
|
|
##include "test_ip/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) ;
|
|
|
|
}
|
|
|