28 lines
420 B
C++
28 lines
420 B
C++
#pragma once
|
|
#include "json.h"
|
|
#include <vector>
|
|
#include <sstream>
|
|
|
|
typedef struct ScanerVendor
|
|
{
|
|
std::string Vendor;
|
|
unsigned short VID;
|
|
unsigned short PID;
|
|
};
|
|
|
|
|
|
class VendorConfig
|
|
{
|
|
public:
|
|
VendorConfig();
|
|
~VendorConfig();
|
|
std::vector<ScanerVendor> GetVendorList();
|
|
void AddVendor(ScanerVendor& vendor);
|
|
private:
|
|
void createdefaultvendor();
|
|
//void read
|
|
private:
|
|
std::vector<ScanerVendor> m_suprtvendor;
|
|
};
|
|
|