ddt 1.2.1
Loading...
Searching...
No Matches
pyDdtDataBroker.cpp File Reference

Python bindings for the data broker component. More...

#include "ddt/ddtDataBroker.hpp"
#include "pybind11/pybind11.h"
#include "pybind11/stl.h"
#include <cstring>

Functions

ddt::InitCodes init_helper (DdtDataBroker &self, std::vector< std::string > &arguments)
 Helper method for calling DdtDataBroker::Init(int argc, char** argv).
 
 PYBIND11_MODULE (DdtDataBroker, m)
 Construct a new pybind11 module object.
 

Detailed Description

Python bindings for the data broker component.

Author
Monika Pfeil, CGI
Since
2021/08/31

Function Documentation

◆ init_helper()

ddt::InitCodes init_helper ( DdtDataBroker & self,
std::vector< std::string > & arguments )

Helper method for calling DdtDataBroker::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 DdtDataBroker class which implements the Init method.
argumentsThe arguments with which the broker is to be started.

◆ PYBIND11_MODULE()

PYBIND11_MODULE ( DdtDataBroker ,
m  )

Construct a new pybind11 module object.