5
// any exceptions thrown following this declaration should make a python
11
catch (const std::exception& exc) {
12
PyErr_SetString(PyExc_RuntimeError, (&exc)->what());
18
#include "src/common_cpp/API/IModule.hh"
19
#include "src/common_cpp/API/ModuleBase.hh"
20
#include "src/common_cpp/API/IInput.hh"
21
#include "src/common_cpp/API/InputBase.hh"
25
%include "src/common_cpp/API/IModule.hh"
26
%include "src/common_cpp/API/ModuleBase.hh"
27
%include "src/common_cpp/API/IInput.hh"
28
%include "src/common_cpp/API/InputBase.hh"
30
%define INPUTBASE_WRAP(OUTPUT)
32
%template(IInput ## OUTPUT) MAUS::IInput<OUTPUT>;
33
%template(InputBase ## OUTPUT) MAUS::InputBase<OUTPUT>;
36
%pointer_functions(OUTPUT, OUTPUT ## p);
42
%feature("shadow") MAUS::InputBase::emitter() %{
44
next_event = self.emitter_cpp()
45
while next_event != "":
47
next_event = self.emitter_cpp()
51
INPUTBASE_WRAP(string)
55
#include "InputCppRoot.hh"
58
%include "InputCppRoot.hh"