a | b/src/WRAP_iMath.cxx | ||
---|---|---|---|
1 | #include <nanobind/nanobind.h> |
||
2 | #include <nanobind/stl/vector.h> |
||
3 | #include <nanobind/stl/string.h> |
||
4 | |||
5 | #include "antscore/iMath.h" |
||
6 | |||
7 | namespace nb = nanobind; |
||
8 | using namespace nb::literals; |
||
9 | |||
10 | using StrVector = std::vector<std::string>; |
||
11 | |||
12 | int iMath( StrVector instring ) |
||
13 | { |
||
14 | return ants::iMath(instring, NULL); |
||
15 | } |
||
16 | |||
17 | void wrap_iMath(nb::module_ &m) { |
||
18 | m.def("iMath", &iMath); |
||
19 | } |