27 lines
571 B
C++
27 lines
571 B
C++
#include <iostream>
|
|
#include <memory>
|
|
|
|
#include "IPrinter.hpp"
|
|
#include "P700Printer.hpp"
|
|
#include "Usb.hpp"
|
|
|
|
#include <libusb-1.0/libusb.h>
|
|
using namespace ptprnt;
|
|
|
|
int main(int argc, char** argv) {
|
|
|
|
std::cout << "Hello ptprnt!" << std::endl;
|
|
|
|
auto usb = std::make_unique<driver::Usb>();
|
|
auto devs = usb->listDevices();
|
|
|
|
for (auto dev : devs) {
|
|
|
|
}
|
|
|
|
/*auto driver = std::make_unique<driver::P700Driver>();
|
|
auto printer = std::make_unique<printer::P700Printer>(std::move(driver));
|
|
printer::info info = printer->getInfo();*/
|
|
|
|
return 0;
|
|
} |