Updates will be applied - 3:30pm EDT (UTC -400). No downtime expected.

Commit ecb442a8 authored by T.J. Corona's avatar T.J. Corona

Discrete session: enable python bindings for import op

parent 12158169
......@@ -25,6 +25,7 @@ using PySharedPtrClass = py::class_<T, std::shared_ptr<T>, Args...>;
#include "PybindLegacyReadResource.h"
#include "PybindCreateEdgesOperation.h"
#include "PybindEdgeOperation.h"
#include "PybindImportOperation.h"
#include "PybindReadOperation.h"
#include "PybindSession.h"
#include "PybindSession_json.h"
......@@ -48,6 +49,7 @@ PYBIND11_MODULE(_smtkPybindDiscreteSession, discrete)
py::class_< smtk::session::discrete::ArrangementHelper, smtk::model::ArrangementHelper > smtk_session_discrete_ArrangementHelper = pybind11_init_smtk_session_discrete_ArrangementHelper(discrete);
PySharedPtrClass< smtk::session::discrete::CreateEdgesOperation, smtk::operation::Operation > smtk_session_discrete_CreateEdgesOperation = pybind11_init_smtk_session_discrete_CreateEdgesOperation(discrete);
PySharedPtrClass< smtk::session::discrete::EdgeOperation, smtk::operation::Operation > smtk_session_discrete_EdgeOperation = pybind11_init_smtk_session_discrete_EdgeOperation(discrete);
PySharedPtrClass< smtk::session::discrete::ImportOperation, smtk::operation::Operation > smtk_session_discrete_ImportOperation = pybind11_init_smtk_session_discrete_ImportOperation(discrete);
PySharedPtrClass< smtk::session::discrete::ReadOperation, smtk::operation::Operation > smtk_session_discrete_ReadOperation = pybind11_init_smtk_session_discrete_ReadOperation(discrete);
PySharedPtrClass< smtk::session::discrete::LegacyReadResource, smtk::operation::Operation > smtk_session_discrete_LegacyReadResource = pybind11_init_smtk_session_discrete_LegacyReadResource(discrete);
PySharedPtrClass< smtk::session::discrete::WriteOperation, smtk::operation::Operation > smtk_session_discrete_WriteOperation = pybind11_init_smtk_session_discrete_WriteOperation(discrete);
......
......@@ -23,10 +23,6 @@ PySharedPtrClass< smtk::session::discrete::ImportOperation, smtk::operation::Ope
PySharedPtrClass< smtk::session::discrete::ImportOperation, smtk::operation::Operation > instance(m, "ImportOperation");
instance
.def_static("create", (std::shared_ptr<smtk::session::discrete::ImportOperation> (*)()) &smtk::session::discrete::ImportOperation::create)
.def_static("create", (std::shared_ptr<smtk::session::discrete::ImportOperation> (*)(::std::shared_ptr<smtk::session::discrete::ImportOperation> &)) &smtk::session::discrete::ImportOperator::create, py::arg("ref"))
.def("shared_from_this", (std::shared_ptr<smtk::session::discrete::ImportOperation> (smtk::session::discrete::ImportOperation::*)()) &smtk::session::discrete::ImportOperator::shared_from_this)
.def("shared_from_this", (std::shared_ptr<const smtk::session::discrete::ImportOperation> (smtk::session::discrete::ImportOperation::*)() const) &smtk::session::discrete::ImportOperator::shared_from_this)
.def("name", &smtk::session::discrete::ImportOperation::name)
.def("ableToOperate", &smtk::session::discrete::ImportOperation::ableToOperate)
;
return instance;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment