|
3 | 3 | #ifdef build_communicate |
4 | 4 | #include "communicate.hpp" |
5 | 5 | #include <boost/python.hpp> |
| 6 | +#include <string> |
6 | 7 |
|
7 | 8 | namespace communicate_export |
8 | 9 | { |
@@ -111,15 +112,18 @@ void export_communicate() |
111 | 112 | { |
112 | 113 | using namespace communicate_export; |
113 | 114 | using namespace boost::python; |
| 115 | + using std::string; |
114 | 116 |
|
115 | 117 | // communicate section |
116 | 118 | // classes |
117 | 119 | class_<Communicator, boost::noncopyable>("CommunicatorBase", no_init); |
118 | 120 | class_<SocketServer, bases<Communicator>>("SocketServer", init<int, optional<int>>((arg("port"), arg("max_msg_size")))); |
119 | | - class_<SocketClient, bases<Communicator>>("SocketClient", init<const char *, int, optional<int>>((arg("ip"), arg("max_msg_size")))); |
| 121 | + class_<SocketClient, bases<Communicator>>("SocketClient", init<string, int, optional<int>>((arg("ip"), arg("max_msg_size")))); |
120 | 122 | class_<SHMCommunicator, bases<Communicator>>("SHMCommunicator", init<int, optional<int>>((arg("id"), arg("max_msg_size")))); |
121 | | - class_<PosixQCommunicator, bases<Communicator>>("PosixQCommunicator", init<const char *, optional<int, int>>((arg("name"), arg("max_msgs"), arg("max_msg_size")))); |
| 123 | + class_<PosixQCommunicator, bases<Communicator>>("PosixQCommunicator", init<string, optional<int, int>>((arg("name"), arg("max_msgs"), arg("max_msg_size")))); |
122 | 124 | class_<SysVCommunicator, bases<Communicator>>("SysVCommunicator", init<int, optional<int>>((arg("id"), arg("max_msg_size")))); |
| 125 | + class_<BluetoothClient, bases<Communicator>>("BluetoothClient", init<string, optional<int>>((arg("bluetooth_addr"), arg("max_msg_size")))); |
| 126 | + class_<BluetoothServer, bases<Communicator>>("BluetoothServer", init<optional<int>>((arg("max_msg_size")))); |
123 | 127 |
|
124 | 128 | // ints |
125 | 129 | def("receive_ints", receive_ints); |
|
0 commit comments