#ifndef KICAD_UTILS_GENERATEHEADEPY_H #define KICAD_UTILS_GENERATEHEADEPY_H #include "trygvis/kicad.h" #include "pybind11/pybind11.h" #include #include namespace trygvis { namespace kicad { namespace python { namespace py = pybind11; using nl = trygvis::kicad::netlist::netlist; class GenerateHeaderPy { public: GenerateHeaderPy(const std::string &ref, nl *netlist); virtual ~GenerateHeaderPy(); std::string ref(); nl *netlist(); std::string str(); void print(const std::string &str); void println(const std::string &str); private: std::string ref_; nl *netlist_; std::stringstream buf_; }; } // namespace python } // namespace kicad } // namespace trygvis #endif