Added ClassPrinter

This commit is contained in:
Łukasz Czyż 2019-11-15 12:57:17 +01:00
parent f2f00aad77
commit 0e3317d397
2 changed files with 31 additions and 0 deletions

9
Src/ClassPrinter.cpp Normal file
View file

@ -0,0 +1,9 @@
#include <ClassPrinter.hpp>
ClassPrinter::ClassPrinter(const cxxopts::ParseResult& results,
const DeviceInfo& deviceInfo,
const std::vector<Peripheral>& peripherals) :
results(results),
deviceInfo(deviceInfo),
peripherals(peripherals){
}

22
Src/ClassPrinter.hpp Normal file
View file

@ -0,0 +1,22 @@
#ifndef CLASS_PRINTER
#define CLASS_PRINTER
#include <cxxopts.hpp>
#include <DeviceInfo.hpp>
#include <Peripheral.hpp>
#include <vector>
struct ClassPrinter
{
ClassPrinter(const cxxopts::ParseResult& results,
const DeviceInfo& deviceInfo,
const std::vector<Peripheral>& peripherals);
private:
const cxxopts::ParseResult& results;
const DeviceInfo& deviceInfo;
const std::vector<Peripheral>& peripherals;
};
#endif