Loading [MathJax]/extensions/tex2jax.js
Free Electron
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Typedefs | Functions | Variables
pyfe Namespace Reference

python binding More...

Typedefs

typedef std::map< fe::sp< fe::BaseType >, fe::sp< BaseConvertor > > convertors_t
 

Functions

Master * pyfeMaster (void)
 
PyObject * PyFeObjectNew (int size, PyTypeObject *type)
 
static PyObject * instanceToPyObject (UWORD index, const fe::Record &record, const fe::sp< fe::Attribute > spAttribute)
 
bool PyObjectToInstance (const fe::Record &record, void *instance, const fe::sp< fe::BaseType > spBT, PyObject *pobj)
 
static void Master_dealloc (PyObject *self)
 
static void Record_dealloc (PyObject *self)
 
static PyObject * Record_getattr (PyObject *self, char *name)
 
static int Record_setattr (PyObject *self, char *name, PyObject *value)
 
static PyObject * Record_check (PyObject *self, PyObject *args)
 
static PyObject * Record_isValid (PyObject *self, PyObject *args)
 
static void RecordArray_dealloc (PyObject *self)
 
static int RecordArray_len (PyObject *self)
 
static PyObject * RecordArray_getitem (PyObject *self, int index)
 
static PyObject * RecordArray_getslice (PyObject *self, int start, int end)
 
static int RecordArray_setitem (PyObject *self, int index, PyObject *obj)
 
static PyObject * RecordArray_getattr (PyObject *self, char *name)
 
static PyObject * RecordArray_check (PyObject *self, PyObject *args)
 
static PyObject * RecordArray_add (PyObject *self, PyObject *args)
 
static void Instance_dealloc (PyObject *self)
 
static void Component_dealloc (PyObject *self)
 
static PyObject * registry_manage (PyObject *self, PyObject *args)
 
static PyObject * registry_create (PyObject *self, PyObject *args)
 
static PyObject * registry_prune (PyObject *self, PyObject *args)
 
FE_DL_EXPORT PyObject * bindRecord (const fe::Record &record)
 
FE_DL_EXPORT PyObject * bindRecordArray (const fe::sp< fe::RecordArray > spRA)
 
FE_DL_EXPORT fe::Record extractRecord (PyObject *pRecord)
 
FE_DL_EXPORT fe::sp< fe::RecordArrayextractRecordArray (PyObject *pRecordArray)
 
FE_DL_EXPORT PyObject * bindComponent (const fe::sp< fe::Component > spComponent)
 
FE_DL_EXPORT fe::sp< fe::ComponentextractComponent (PyObject *pComponent)
 
FE_DL_EXPORT fe::Instance extractInstance (PyObject *pInstance)
 
FE_DL_EXPORT PyObject * bindInstance (fe::Instance &instance)
 
FE_DL_EXPORT void addConvertor (fe::sp< fe::BaseType > spBT, fe::sp< BaseConvertor > spConvertor)
 
PyObject * lookupPyObject (char *module_name, char *object_name)
 
FE_DL_EXPORT fe::MasterfeMaster (void)
 
PyObject * createMaster (void)
 
static void Master_dealloc (PyObject *self)
 
static void Record_dealloc (PyObject *self)
 
static PyObject * Record_getattr (PyObject *self, char *name)
 
static int Record_setattr (PyObject *self, char *name, PyObject *value)
 
static void RecordArray_dealloc (PyObject *self)
 
static int RecordArray_len (PyObject *self)
 
static PyObject * RecordArray_getitem (PyObject *self, int index)
 
static PyObject * RecordArray_getslice (PyObject *self, int start, int end)
 
static int RecordArray_setitem (PyObject *self, int index, PyObject *obj)
 
static PyObject * RecordArray_getattr (PyObject *self, char *name)
 
static void Instance_dealloc (PyObject *self)
 
static void Component_dealloc (PyObject *self)
 
static PyObject * registry_manage (PyObject *self, PyObject *args)
 
static PyObject * registry_create (PyObject *self, PyObject *args)
 
static PyObject * registry_prune (PyObject *self, PyObject *args)
 
static PyObject * Record_check (PyObject *self, PyObject *args)
 
static PyObject * Record_isValid (PyObject *self, PyObject *args)
 
static PyObject * RecordArray_check (PyObject *self, PyObject *args)
 
static PyObject * RecordArray_add (PyObject *self, PyObject *args)
 

Variables

FE_DL_EXPORT PyInterpreterState * ms_pInterp = NULL
 
FE_DL_EXPORT boost::thread_specific_sp< PyThreadState * > tss_tstate
 
static PyTypeObject Master_T
 
static PyTypeObject Record_T
 
static PySequenceMethods RecordArray_as_sequence
 
static PyTypeObject RecordArray_T
 
static PyTypeObject Instance_T
 
static PyTypeObject Component_T
 
static PyMethodDef PyFeMethods []
 
static PyMethodDef Record_Methods []
 
static PyMethodDef RecordArray_Methods []
 

Detailed Description

python binding

Variable Documentation

◆ Component_T

PyTypeObject pyfe::Component_T
static
Initial value:
=
{
PyObject_HEAD_INIT(NULL)
0,
"pyfeComponent",
sizeof(Component),
0,
Component_dealloc,
0,
0,
0,
0,
0,
0,
0,
0,
0,
}

◆ Instance_T

PyTypeObject pyfe::Instance_T
static
Initial value:
=
{
PyObject_HEAD_INIT(NULL)
0,
"pyfeInstance",
sizeof(Instance),
0,
Instance_dealloc,
0,
0,
0,
0,
0,
0,
0,
0,
0,
}

◆ Master_T

PyTypeObject pyfe::Master_T
static
Initial value:
=
{
PyObject_HEAD_INIT(NULL)
0,
"pyfeMaster",
sizeof(Master),
0,
pyfe::Master_dealloc,
0,
0,
0,
0,
0,
0,
0,
0,
0,
}

◆ PyFeMethods

PyMethodDef pyfe::PyFeMethods[]
static
Initial value:
=
{
{ "create", registry_create, 1 },
{ "manage", registry_manage, 1 },
{ "prune", registry_prune, 1 },
{ NULL, NULL}
}

◆ Record_Methods

PyMethodDef pyfe::Record_Methods[]
static
Initial value:
=
{
{ "check", Record_check, 1 },
{ "isValid", Record_isValid, 1 },
{ NULL, NULL}
}

◆ Record_T

PyTypeObject pyfe::Record_T
static
Initial value:
=
{
PyObject_HEAD_INIT(NULL)
0,
"pyfeRecord",
sizeof(Record),
0,
Record_dealloc,
0,
Record_getattr,
Record_setattr,
0,
0,
0,
0,
0,
0,
}

◆ RecordArray_as_sequence

PySequenceMethods pyfe::RecordArray_as_sequence
static
Initial value:
=
{
RecordArray_len,
0,
0,
RecordArray_getitem,
RecordArray_getslice,
RecordArray_setitem,
0,
}

◆ RecordArray_Methods

PyMethodDef pyfe::RecordArray_Methods[]
static
Initial value:
=
{
{ "check", RecordArray_check, 1 },
{ "add", RecordArray_add, 1 },
{ NULL, NULL}
}

◆ RecordArray_T

PyTypeObject pyfe::RecordArray_T
static
Initial value:
=
{
PyObject_HEAD_INIT(NULL)
0,
"pyfeRecordArray",
sizeof(RecordArray),
0,
RecordArray_dealloc,
0,
RecordArray_getattr,
0,
0,
0,
0,
&RecordArray_as_sequence,
0,
0,
}