Files
ptouch-prnt/src/PrinterDriverFactory.hpp
Moritz Martinius 1b52fb0458
All checks were successful
Build ptprnt / build (push) Successful in 1m36s
This Commit adds a rudimentary printer factory to greatly simplify the creation of printers
2024-03-23 14:38:44 +01:00

22 lines
621 B
C++

#include <memory>
#include "interface/IPrinterDriver.hpp"
#include "libusbwrap/LibUsbTypes.hpp"
namespace ptprnt {
class PrinterDriverFactory {
public:
PrinterDriverFactory() = default;
~PrinterDriverFactory() = default;
PrinterDriverFactory(const PrinterDriverFactory&) = delete;
PrinterDriverFactory& operator=(const PrinterDriverFactory&) = delete;
PrinterDriverFactory(PrinterDriverFactory&&) = delete;
PrinterDriverFactory& operator=(PrinterDriverFactory&&) = delete;
std::shared_ptr<IPrinterDriver> create(libusbwrap::usbId id);
private:
};
}