mirror of
https://github.com/supleed2/svd2cpp.git
synced 2024-12-22 13:45:50 +00:00
Added ClassPrinter
This commit is contained in:
parent
f2f00aad77
commit
0e3317d397
9
Src/ClassPrinter.cpp
Normal file
9
Src/ClassPrinter.cpp
Normal 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
22
Src/ClassPrinter.hpp
Normal 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
|
Loading…
Reference in a new issue