#include "PrinterDriverFactory.hpp" #include #include #include "P700Printer.hpp" #include "libusbwrap/LibUsbTypes.hpp" namespace ptprnt { std::shared_ptr PrinterDriverFactory::create(libusbwrap::usbId id) { if (printer::P700Printer::mInfo.usbId == id) { spdlog::info("Found printer P700!"); return std::make_shared(); } else { spdlog::trace("{:04x}:{:04x} is not a compatible printer", id.first, id.second); } return nullptr; } } // namespace ptprnt