-
Notifications
You must be signed in to change notification settings - Fork 6
/
isoObject.i
58 lines (48 loc) · 1.33 KB
/
isoObject.i
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* File : isoObject.i */
%module(directors="1") isoObject_wrap
%feature("director") TestObject;
#ifdef SWIGJAVA
%javaconst(0);
#endif
#ifdef SWIGPYTHON
%rename(timevalLessThan) operator< (const timeval &lhs, const timeval &rhs);
%rename(timevalGreaterThan) operator> (const timeval &lhs, const timeval &rhs);
#endif
%pointer_functions(uint32_t, uint32ptr);
%include <std_vector.i>
%include <stdint.i>
%include <cpointer.i>
%include <typemaps.i>
%rename(LessThan) operator<(const Transition &lhs, const Transition &rhs);
%typemap(in) (char *buffer, int bufferLen) {
Py_ssize_t len;
PyBytes_AsStringAndSize($input, &$1, &len);
$2 = (int)len;
}
%{
#include <boost/asio.hpp>
#include "trajDecoder.hpp"
#include "iso22133state.hpp"
#include "iso22133object.hpp"
#include "iso22133.h"
#include "udpServer.hpp"
#include "tcpServer.hpp"
#include "positioning.h"
%}
%include <boost/asio.hpp>
%include "trajDecoder.hpp"
%include "iso22133state.hpp"
%include "iso22133object.hpp"
%include "iso22133/iso22133.h"
%include "udpServer.hpp"
%include "tcpServer.hpp"
%include "positioning.h"
namespace std {
%template(TrajectoryWaypointVector) vector<TrajectoryWaypointType>;
};
typedef double double_t;
typedef long int ssize_t;
struct timeval {
long int tv_sec;
long int tv_usec;
};