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