Newer
Older
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* MethodPy.h
*
* Created on: Mar 14, 2017
* Author: wfg
*/
#ifndef METHODPY_H_
#define METHODPY_H_
#include "adios2/pybind11/cast.h"
#include "adios2/pybind11/pybind11.h"
namespace adios
{
#ifdef HAVE_BOOSTPYTHON
using pyObject = boost::python::object;
using pyTuple = boost::python::tuple;
using pyDict = boost::python::dict;
#endif
#ifdef HAVE_PYBIND11
using pyObject = pybind11::object;
using pyTuple = pybind11::tuple;
using pyDict = pybind11::dict;
#endif
class MethodPy : public Method
{
public:
MethodPy(const std::string type, const bool debugMode);
static pyObject SetParametersPy(pyTuple args, pyDict kwargs);
static pyObject AddTransportPy(pyTuple args, pyDict kwargs);
void SetParametersPyBind11(pybind11::kwargs kwargs);
void AddTransportPyBind11(const std::string type, pybind11::kwargs kwargs);