]> SALOME platform Git repositories - modules/shaper.git/blob - src/CollectionAPI/CollectionAPI.i
Salome HOME
Task 2.4. Ability to modify the radius of circles and arcs of circle with the mouse
[modules/shaper.git] / src / CollectionAPI / CollectionAPI.i
1 /* CollectionAPI.i */
2
3 %module CollectionAPI
4
5 %{
6 #ifndef CollectionAPI_swig_H_
7 #define CollectionAPI_swig_H_
8
9   #include <ModelHighAPI_swig.h>
10
11   #include "CollectionAPI.h"
12   #include "CollectionAPI_Group.h"
13   #include "CollectionAPI_Field.h"
14
15 #endif // CollectionAPI_swig_H_
16 %}
17
18 %{
19   #include "ModelHighAPI_swig.h"
20
21   // fix for SWIG v2.0.4
22   #define SWIGPY_SLICE_ARG(obj) ((PySliceObject*)(obj))
23 %}
24
25 %include "doxyhelp.i"
26
27 // import other modules
28 %import "ModelHighAPI.i"
29
30 // to avoid error on this
31 #define COLLECTIONAPI_EXPORT
32
33 // standard definitions
34 %include "typemaps.i"
35 %include "std_list.i"
36 %include "std_string.i"
37 %include "std_shared_ptr.i"
38
39 %template(StringList) std::list<std::string>;
40 %template(IntegerList) std::list<int>;
41 %template(DoubleList) std::list<double>;
42 %template(BooleanList) std::list<bool>;
43 %template(StringListList) std::list<std::list<std::string> >;
44 %template(IntegerListList) std::list<std::list<int> >;
45 %template(DoubleListList) std::list<std::list<double> >;
46 %template(BooleanListList) std::list<std::list<bool> >;
47
48 // shared pointers
49 %shared_ptr(CollectionAPI_Group)
50 %shared_ptr(CollectionAPI_Field)
51
52 // all supported interfaces
53 %include "CollectionAPI_Group.h"
54 %include "CollectionAPI_Field.h"