rogue
Loading...
Searching...
No Matches
module.cpp
Go to the documentation of this file.
1
18#include "rogue/Directives.h"
19
21
22#include <RogueConfig.h>
23
24#include <boost/python.hpp>
25
27
32
37
38namespace bp = boost::python;
39
41 // map the IO namespace to a sub-module
42 bp::object module(bp::handle<>(bp::borrowed(PyImport_AddModule("rogue.protocols.batcher"))));
43
44 // make "from mypackage import class1" work
45 bp::scope().attr("batcher") = module;
46
47 // set the current scope to the new sub-module
48 bp::scope io_scope = module;
49
51
56
61}
static void setup_python()
Registers Python bindings for this class.
static void setup_python()
Registers Python bindings for this class.
static void setup_python()
Registers Python bindings for this class.
Definition CoreV1.cpp:65
static void setup_python()
Registers Python bindings for this class.
Definition CoreV2.cpp:62
static void setup_python()
Registers Python bindings for this class.
Definition Data.cpp:37
static void setup_python()
Registers Python bindings for this class.
static void setup_python()
Registers Python bindings for this class.
static void setup_python()
Registers Python bindings for this class.
static void setup_python()
Registers Python bindings for this class.