Sketching some basic interfaces
This commit is contained in:
12
src/main.cpp
12
src/main.cpp
@@ -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;
|
||||
}
|
Reference in New Issue
Block a user