xmsgeom  1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
xmsgeom_py.cpp
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
7 //------------------------------------------------------------------------------
8 
9 //----- Included files ---------------------------------------------------------
10 #include <pybind11/pybind11.h>
12 
13 //----- Namespace declaration --------------------------------------------------
14 namespace py = pybind11;
15 
16 //----- Python Interface -------------------------------------------------------
17 std::string version() {
18  return "1.0.0";
19 }
20 
21 
22 //------ Primary Module --------------------------------------------------------
23 PYBIND11_MODULE(xmsgeom_py, m) {
24  m.doc() = "Python bindings for xmsgeom"; // optional module docstring
25  m.def("version", &version,
26  "Get current version of xmsgeom Python bindings.");
27 
28  // UGrid module
29  py::module modTriangulate = m.def_submodule("triangulate");
30  initTriangulate(modTriangulate);
31 }
32 
initializer functions for members of triangulate python module.