40 #include "config/have_protobuf.hh"
41 #include "debug/TrafficGen.hh"
42 #include "params/PyTrafficGen.hh"
45 namespace py = pybind11;
59 std::shared_ptr<BaseGen>
63 return std::shared_ptr<BaseGen>();
67 return std::shared_ptr<BaseGen>();
72 std::shared_ptr<BaseGen> gen =
76 }
catch (py::cast_error&) {
77 fatal(
"Meta generator didn't return a valid trace generator\n");
84 using namespace pybind11::literals;
86 py::module
m = m_native.def_submodule(
"trace");
88 py::class_<BaseGen, std::shared_ptr<BaseGen>> c_base(
m,
"BaseGen");
94 PyTrafficGenParams::create()