ddt  0.1
Functions
pyDdtDataBroker.cpp File Reference
#include "ddt/ddtDataBroker.hpp"
#include "pybind11/pybind11.h"
#include "pybind11/stl.h"
#include <cstring>

Functions

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

Function Documentation

◆ init_helper()

bool 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  ,
 
)

Construct a new pybind11 module object.