ddt  0.1
Functions
pyDdtRemoteLib.cpp File Reference
#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 <cstring>
#include <memory>
#include <stdio.h>

Functions

bool init_helper (ddt::DdtRemoteClient &self, std::vector< std::string > &arguments)
 Helper method for calling DdtRemoteClient::Init(int argc, char** argv). More...
 
class __attribute__ ((visibility("hidden"))) PySlot
 Python slot for connecting to the DataAvailable signal. More...
 
void connect_remote_command_signal (ddt::DdtRemoteControl &self, const py::object object)
 Helper method for connecting the python slot to the DataAvailable signal. More...
 
 PYBIND11_MODULE (DdtRemoteLib, m)
 Construct a new pybind11 module object. More...
 

Function Documentation

◆ __attribute__()

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.

◆ connect_remote_command_signal()

void connect_remote_command_signal ( ddt::DdtRemoteControl self,
const py::object  object 
)

Helper method for connecting the python slot to the DataAvailable signal.

Parameters
selfThe DdtRemoteControl class which implements the connect method.
objectThe function to be called when the event occurs.

◆ init_helper()

bool 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.

Parameters
selfThe DdtRemoteClient class which implements the Init method.
argumentsThe arguments with which the broker is to be started.

◆ PYBIND11_MODULE()

PYBIND11_MODULE ( DdtRemoteLib  ,
 
)

Construct a new pybind11 module object.