Program Listing for File PyImports.h

Return to documentation for file (PyImports.h)

// This file is part of necsim project which is released under MIT license.
// See file **LICENSE.txt** or visit https://opensource.org/licenses/MIT) for full license details
#ifndef PYIMPORTS_H
#define PYIMPORTS_H

#include <Python.h>
#include <utility>
#include <vector>
#include <string>

#include "necsim/Cell.h"
using namespace std;
using namespace necsim;


bool importPyListToVectorString(PyObject *list_input, vector<string> &output, const string &err_msg);

bool importPyListToVectorULong(PyObject *list_input, vector<unsigned long> &output, const string &err_msg);


bool importPyListToVectorDouble(PyObject *list_input, vector<double> &output, const string &err_msg);

bool importPyListsToVectorCell(PyObject *x_list_input, PyObject *y_list_input, vector<Cell> &output, const string &err_msg);
#endif //SPECIATIONCOUNTER_PYIMPORTS_H