rogue
Loading...
Searching...
No Matches
module.cpp
Go to the documentation of this file.
1
18#include "rogue/Directives.h"
19
21
22#include <boost/python.hpp>
23
35
36namespace bp = boost::python;
38
40 // map the IO namespace to a sub-module
41 bp::object module(bp::handle<>(bp::borrowed(PyImport_AddModule("rogue.interfaces.stream"))));
42
43 // make "from mypackage import class1" work
44 bp::scope().attr("stream") = module;
45
46 // set the current scope to the new sub-module
47 bp::scope io_scope = module;
48
49 ris::Frame::setup_python();
50 ris::FrameLock::setup_python();
51 ris::Master::setup_python();
52 ris::Slave::setup_python();
53 ris::Pool::setup_python();
54 ris::Fifo::setup_python();
55 ris::Filter::setup_python();
56 ris::TcpCore::setup_python();
57 ris::TcpClient::setup_python();
58 ris::TcpServer::setup_python();
59 ris::RateDrop::setup_python();
60}