Fledge
An open source edge computing platform for industrial users
pythonconfigcategory.h
1 #ifndef _PYTHONCONFIGCATEGORY_H
2 #define _PYTHONCONFIGCATEGORY_H
3 /*
4  * Fledge Python Configuration Category
5  *
6  * Copyright (c) 2021 Dianomic Systems
7  *
8  * Released under the Apache 2.0 Licence
9  *
10  * Author: Mark Riddoch
11  */
12 
13 #include <config_category.h>
14 #include <Python.h>
15 
21  public:
22  PythonConfigCategory(PyObject *pyConfig);
23  PyObject *toPython();
24  private:
25  PyObject *convertItem(CategoryItem *);
26 };
27 #endif
Definition: config_category.h:56
A wrapper class for a ConfigCategory to convert to and from Python objects.
Definition: pythonconfigcategory.h:20
Definition: config_category.h:162
PyObject * toPython()
Convert a ConfigCategory, into a PyObject structure that can be passed to embedded Python code...
Definition: pythonconfigcategory.cpp:112
PythonConfigCategory(PyObject *pyConfig)
Construct a PythonConfigCategory from a DICT object returned by Python code.
Definition: pythonconfigcategory.cpp:25