Mercurial > hg > aimc
comparison swig/aim_modules.i @ 166:d4029d3124c4
- Better python support for signals
author | tomwalters |
---|---|
date | Wed, 04 Aug 2010 07:20:26 +0000 |
parents | 7e1fe07d13dc |
children | 4fb328f81012 |
comparison
equal
deleted
inserted
replaced
165:f75123cf39ce | 166:d4029d3124c4 |
---|---|
16 // limitations under the License. | 16 // limitations under the License. |
17 | 17 |
18 %module aimc | 18 %module aimc |
19 %include "std_string.i" | 19 %include "std_string.i" |
20 %include stl.i | 20 %include stl.i |
21 %include "std_vector.i" | |
22 | |
23 namespace std { | |
24 %template(FloatVector) vector<float>; | |
25 } | |
26 | |
21 %{ | 27 %{ |
22 #include "Support/Common.h" | 28 #include "Support/Common.h" |
23 #include "Support/Module.h" | 29 #include "Support/Module.h" |
24 #include "Support/Parameters.h" | 30 #include "Support/Parameters.h" |
25 #include "Support/SignalBank.h" | 31 #include "Support/SignalBank.h" |
33 #include "Modules/Profile/ModuleSlice.h" | 39 #include "Modules/Profile/ModuleSlice.h" |
34 #include "Modules/Profile/ModuleScaler.h" | 40 #include "Modules/Profile/ModuleScaler.h" |
35 %} | 41 %} |
36 | 42 |
37 %include "Support/Parameters.h" | 43 %include "Support/Parameters.h" |
44 using namespace std; | |
38 %include "Support/SignalBank.h" | 45 %include "Support/SignalBank.h" |
39 | 46 |
40 namespace aimc { | 47 namespace aimc { |
41 using std::ostream; | 48 using std::ostream; |
42 using std::set; | 49 using std::set; |