#include #include #include "IPrinter.hpp" #include "P700Printer.hpp" #include "Usb.hpp" #include #include using namespace ptprnt; void setupLogger() { spdlog::set_level(spdlog::level::debug); spdlog::info("Starting ptprnt {}", PROJ_VERSION); } int main(int argc, char** argv) { setupLogger(); auto usb = std::make_shared(); auto maybeDevs = usb->getDevices(); if(!maybeDevs.has_value()) { spdlog::error("No USB devices found"); return -1; } auto driver = std::make_unique(usb); //auto printer = std::make_unique(std::move(driver)); //printer::info info = printer->getInfo(); return 0; }