trick/test/SIM_test_dp/S_define

46 lines
949 B
Plaintext
Raw Permalink Normal View History

2015-02-26 15:02:31 +00:00
/************************TRICK HEADER*************************
PURPOSE:
(This comment lists out the other object files that are not included from c++ headers)
LIBRARY DEPENDENCIES:
(
(dp/src/dp.c)
2015-02-26 15:02:31 +00:00
)
*************************************************************/
#include "sim_objects/default_trick_sys.sm"
##include "dp/include/dp.h"
2015-02-26 15:02:31 +00:00
%{
// Allow C++ access to the these C functions
extern "C" {
extern int dp(DP_TEST*) ;
}
%}
//=============================================================================
// SIM_OBJECT: dp
// This sim object test data products.
//=============================================================================
class testSimObject : public Trick::SimObject {
public:
DP_TEST test ;
testSimObject() {
(0.01, "scheduled") trick_ret = dp( &test ) ;
}
} ;
// Instantiations
testSimObject dpx ;
// Connect objects
void create_connections() {
}