OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
PythonExtensions Namespace Reference

Functions

static PyObject * OT_GetPropertyValue (PyObject *_self, PyObject *_args)
 
static PyObject * OT_GetScript (PyObject *_self, PyObject *_args)
 
static PyObject * OT_SetPropertyValue (PyObject *_self, PyObject *_args)
 
static PyObject * OT_Flush (PyObject *_self, PyObject *_args)
 
static PyObject * OT_FlushEntity (PyObject *_self, PyObject *_args)
 
static PyObject * OT_GetTableCell (PyObject *_self, PyObject *_args)
 
static PyObject * OT_GetPortData (PyObject *_self, PyObject *_args)
 
static PyObject * OT_SetPortData (PyObject *_self, PyObject *_args)
 
PyMODINIT_FUNC PyInit_OpenTwin (void)
 

Variables

static PyMethodDef OTMethods []
 
static std::string otModuleDescription = "This module holds functions that call c++ functions, provided by the OpenTwin framework. These functions enable the access to OpenTwin's entities and their properties."
 
static struct PyModuleDef OTModule
 

Function Documentation

◆ OT_Flush()

PyObject * PythonExtensions::OT_Flush ( PyObject * _self,
PyObject * _args )
static

◆ OT_FlushEntity()

PyObject * PythonExtensions::OT_FlushEntity ( PyObject * _self,
PyObject * _args )
static

◆ OT_GetPortData()

PyObject * PythonExtensions::OT_GetPortData ( PyObject * _self,
PyObject * _args )
static

◆ OT_GetPropertyValue()

PyObject * PythonExtensions::OT_GetPropertyValue ( PyObject * _self,
PyObject * _args )
static

◆ OT_GetScript()

PyObject * PythonExtensions::OT_GetScript ( PyObject * _self,
PyObject * _args )
static

◆ OT_GetTableCell()

PyObject * PythonExtensions::OT_GetTableCell ( PyObject * _self,
PyObject * _args )
static

◆ OT_SetPortData()

PyObject * PythonExtensions::OT_SetPortData ( PyObject * _self,
PyObject * _args )
static

◆ OT_SetPropertyValue()

PyObject * PythonExtensions::OT_SetPropertyValue ( PyObject * _self,
PyObject * _args )
static

◆ PyInit_OpenTwin()

PyMODINIT_FUNC PythonExtensions::PyInit_OpenTwin ( void )

Variable Documentation

◆ OTMethods

PyMethodDef PythonExtensions::OTMethods[]
static
Initial value:
= {
{"GetPropertyValue", OT_GetPropertyValue, METH_VARARGS, "Get the value of a requested property from a requested entity."},
{"GetTableCellValue", OT_GetTableCell, METH_VARARGS, "Get the value of a cell from a requested entity."},
{"SetPropertyValue", OT_SetPropertyValue, METH_VARARGS, "Set the property value of a requested property from a requested entity."},
{"Flush", OT_Flush, METH_NOARGS, "Apply all changes on entity properties."},
{"FlushEntity", OT_FlushEntity, METH_VARARGS, "Apply all changes on requested entity."},
{"GetPythonScript", OT_GetScript, METH_VARARGS, "Executes another python script that is stored within OpenTwin."},
{"GetPortData", OT_GetPortData, METH_VARARGS, "For Block Items. Gets datachunks from the ingoing ports."},
{"SetPortData", OT_SetPortData, METH_VARARGS, "For Block Items. Sets datachunks from the outgoing ports."},
{NULL, NULL, 0, NULL}
}

◆ OTModule

struct PyModuleDef PythonExtensions::OTModule
static
Initial value:
= {
PyModuleDef_HEAD_INIT,
"OpenTwin",
-1,
}
static PyMethodDef OTMethods[]
Definition PythonExtension.h:32
static std::string otModuleDescription
Definition PythonExtension.h:45

◆ otModuleDescription

std::string PythonExtensions::otModuleDescription = "This module holds functions that call c++ functions, provided by the OpenTwin framework. These functions enable the access to OpenTwin's entities and their properties."
static