1+ /* **************************
2+ @Author: Chunel
3+ 4+ @File: PyCGraph.cpp
5+ @Time: 2025/1/30 21:43
6+ @Desc:
7+ ***************************/
8+
19#include < pybind11/pybind11.h>
210#include < pybind11/stl.h>
311
@@ -20,6 +28,9 @@ PYBIND11_MODULE(PyCGraph, m) {
2028 .value (" PARALLEL" , GMultiConditionType::PARALLEL)
2129 .export_values ();
2230
31+ py::class_<GParam, PywGParam, std::unique_ptr<GParam, py::nodelete> >(m, " GParam" )
32+ .def (py::init<>());
33+
2334 py::class_<PyGPipeline, std::unique_ptr<PyGPipeline, py::nodelete> >(m, " GPipeline" )
2435 .def (py::init<>())
2536 .def (" init" , &PyGPipeline::init)
@@ -36,6 +47,8 @@ PYBIND11_MODULE(PyCGraph, m) {
3647
3748 py::class_<GElement, PywGElement, std::unique_ptr<GElement, py::nodelete> >(m, " GElement" )
3849 .def (py::init<>())
50+ .def (" createGParam" , &GElement::__createGParam_4py)
51+ .def (" getGParam" , &GElement::__getGParam_4py)
3952 .def (" getName" , &GElement::getName)
4053 .def (" setName" , &GElement::setName)
4154 .def (" addDependGElements" , &GElement::addDependGElements,
0 commit comments