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
20
class
PythonConfigCategory
:
public
ConfigCategory
{
21
public
:
22
PythonConfigCategory
(PyObject *pyConfig);
23
PyObject *
toPython
();
24
private
:
25
PyObject *convertItem(
CategoryItem
*);
26
};
27
#endif
PythonConfigCategory::toPython
PyObject * toPython()
Convert a ConfigCategory, into a PyObject structure that can be passed to embedded Python code.
Definition:
pythonconfigcategory.cpp:112
PythonConfigCategory::PythonConfigCategory
PythonConfigCategory(PyObject *pyConfig)
Construct a PythonConfigCategory from a DICT object returned by Python code.
Definition:
pythonconfigcategory.cpp:25
ConfigCategory
Definition:
config_category.h:56
PythonConfigCategory
A wrapper class for a ConfigCategory to convert to and from Python objects.
Definition:
pythonconfigcategory.h:20
ConfigCategory::CategoryItem
Definition:
config_category.h:167
C
common
include
pythonconfigcategory.h
Generated by
1.8.17