mirror of http://192.168.1.51:8099/lmh188/twain3.0
21 lines
565 B
C
21 lines
565 B
C
|
#pragma once
|
||
|
#include "Device/PublicFunc.h"
|
||
|
#include <vector>
|
||
|
|
||
|
class GscanJsonConfig
|
||
|
{
|
||
|
public:
|
||
|
GscanJsonConfig();
|
||
|
~GscanJsonConfig();
|
||
|
public:
|
||
|
GScanCap GetDefaultGscancapValue();
|
||
|
void SaveGscanCapConfig(const GScanCap& gcap, const std::string path);
|
||
|
void WriteJsonArrayToFile(std::vector<GScanCap> cfgArray, const std::string filename);
|
||
|
GScanCap ReadGscanCap();
|
||
|
std::vector<GScanCap> ReadGscanCapsVector(const std::string gcapsfilepath);
|
||
|
bool DeleteJsonFile(std::string path);
|
||
|
private:
|
||
|
std::vector<GScanCap> parseJsonFromString(const std::string str);
|
||
|
};
|
||
|
|