comparison PyFeature.h @ 31:4f1894c7591b vampy2

Created Vampy2 branch
author fazekasgy
date Sun, 20 Sep 2009 17:31:20 +0000
parents
children c905122f79e7
comparison
equal deleted inserted replaced
28:5139bf30f208 31:4f1894c7591b
1 #ifndef _PYFEATURE_H_
2 #define _PYFEATURE_H_
3
4 #include "vamp-sdk/Plugin.h"
5 // #include "PyTypeInterface.h"
6
7 typedef struct {
8 PyObject_HEAD
9 PyObject *dict; /* Attributes dictionary */
10 // Vamp::Plugin::Feature *feature;
11 /// pointer to type interface required
12 // PyTypeInterface ti;
13 } FeatureObject;
14
15 PyAPI_DATA(PyTypeObject) Feature_Type;
16
17 #define PyFeature_CheckExact(v) ((v)->ob_type == &Feature_Type)
18 #define PyFeature_Check(v) PyObject_TypeCheck(v, &Feature_Type)
19 ///fast macro version as per API convention
20 #define PyFeature_AS_DICT(v) ((const FeatureObject* const) (v))->dict
21
22
23 /* PyFeature C++ API */
24
25 /// Not required: we will never have to pass a feature back from the wrapper
26 // PyAPI_FUNC(PyObject *)
27 // PyFeature_FromFeature(Vamp::RealTime&);
28
29 // PyAPI_FUNC(const Vamp::Plugin::Feature*)
30 // PyFeature_AsFeature (PyObject *self);
31
32 ///fast macro version as per API convention
33 // #define PyFeature_AS_FEATURE(v) ((const FeatureObject* const) (v))->feature
34
35
36 #endif