40 #include "config/have_protobuf.hh"
41 #include "debug/TrafficGen.hh"
42 #include "params/PyTrafficGen.hh"
45 namespace py = pybind11;
62 std::shared_ptr<BaseGen>
66 return std::shared_ptr<BaseGen>();
70 return std::shared_ptr<BaseGen>();
75 std::shared_ptr<BaseGen> gen =
79 }
catch (py::cast_error&) {
80 fatal(
"Meta generator didn't return a valid trace generator\n");
87 using namespace pybind11::literals;
89 py::module_
m = m_native.def_submodule(
"trace");
91 py::class_<BaseGen, std::shared_ptr<BaseGen>> c_base(
m,
"BaseGen");