|
ddt 1.2.1
|
Python bindings for the remote component. More...
#include <boost/bind.hpp>#include "pybind11/pybind11.h"#include "pybind11/stl.h"#include "ddt/ddtRemoteClient.hpp"#include "ddt/ddtRemoteControl.hpp"#include "ddt/widgets/ddtImageWidget.hpp"#include <stdio.h>#include <cstring>#include <memory>| #define | BOOST_BIND_GLOBAL_PLACEHOLDERS |
| ddt::InitCodes | init_helper (ddt::DdtRemoteClient &self, std::vector< std::string > &arguments) |
| Helper method for calling DdtRemoteClient::Init(int argc, char** argv). | |
| class | __attribute__ ((visibility("hidden"))) PySlot |
| Python slot for connecting to the DataAvailable signal. | |
| void | connect_remote_command_signal (ddt::DdtRemoteControl &self, const py::object object) |
| Helper method for connecting the python slot to the DataAvailable signal. | |
| PYBIND11_MODULE (DdtRemoteLib, m) | |
| Construct a new pybind11 module object. | |
Python bindings for the remote component.
| #define BOOST_BIND_GLOBAL_PLACEHOLDERS |
| class __attribute__ | ( | (visibility("hidden")) | ) |
Python slot for connecting to the DataAvailable signal.
This slot takes care of the GIL which is necessary for connecting a Python method to a C++ signal.
| void connect_remote_command_signal | ( | ddt::DdtRemoteControl & | self, |
| const py::object | object ) |
Helper method for connecting the python slot to the DataAvailable signal.
| self | The DdtRemoteControl class which implements the connect method. |
| object | The function to be called when the event occurs. |
| ddt::InitCodes init_helper | ( | ddt::DdtRemoteClient & | self, |
| std::vector< std::string > & | arguments ) |
Helper method for calling DdtRemoteClient::Init(int argc, char** argv).
This method casts the entries of arguments of type std::string to char arrays and stores them in another array. This is important for having a '\0' at the end of each entry.
| self | The DdtRemoteClient class which implements the Init method. |
| arguments | The arguments with which the broker is to be started. |
| PYBIND11_MODULE | ( | DdtRemoteLib | , |
| m | ) |
Construct a new pybind11 module object.