Testing #268

PythonAPI: prepare set of C++/Python binding examples using boost::python

Added by pospelov almost 7 years ago. Updated almost 7 years ago.

Status:ArchivedStart date:25 Apr 2013
Priority:NormalDue date:
Assignee:pospelov% Done:

0%

Category:-
Target version:Sprint 13

History

#1 Updated by pospelov almost 7 years ago

  • Assignee set to pospelov
  • Target version set to Sprint 13

I have created 12 isolated examples showing how to bind C++ with python using boost-python.
Examples are located on our sc-intern git in the directory sc-intern/technologies/python-bindings/boost-python

List of current examples
ex01_HelloWorld
ex02_SimpleInheritance
ex03_InheritanceAndOverload
ex04_PureVirtual
ex05_PythonListToVector
ex06_AddressOfPythonVariableInCpp
ex07_BasicVector3D
ex08_SharedPtrInPython
ex09_CppReturnsNumPyArray
ex10_TransferOfOwnershipToCpp
ex11_CustomQtWidget
ex12_CustomQtWidgetAutoSIP

Last two examples are showing how to create custom Qt widget with C++ and then integrate it with PyQt widgets.

The list is not complete but it covers the majority of tricky boost-python cases we need for BornAgain.

#2 Updated by pospelov almost 7 years ago

  • Status changed from Backlog to Sprint

#3 Updated by pospelov almost 7 years ago

  • Status changed from Sprint to Resolved

#4 Updated by herck almost 7 years ago

  • Status changed from Resolved to Archived

Also available in: Atom PDF