Sketching some basic interfaces

This commit is contained in:
2022-11-01 20:02:47 +01:00
parent bd9a39e185
commit 2913a272d1
13 changed files with 295 additions and 9 deletions

View File

@@ -1,9 +1,19 @@
#include <iostream>
#include <memory>
#include "IPrinter.hpp"
#include "P700Printer.hpp"
using namespace ptprnt;
int main(int argc, char** argv) {
std::cout << "Hello World!" << std::endl;
std::cout << "Hello ptprnt!" << std::endl;
auto driver = std::make_unique<driver::P700Driver>();
auto printer = std::make_unique<printer::P700Printer>(std::move(driver));
printer::info info = printer->getInfo();
return 0;
}