You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
1.8 KiB
87 lines
1.8 KiB
#ifndef CamConfig_H
|
|
#define CamConfig_H
|
|
|
|
#include "JsonCoversion.h"
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include "CheckConfigDefine.h"
|
|
#include "Define.h"
|
|
|
|
class CommonParamJson : public JsonCoversion
|
|
{
|
|
public:
|
|
CommonParamJson() {}
|
|
virtual ~CommonParamJson() {}
|
|
|
|
public:
|
|
virtual Json::Value toJsonValue();
|
|
virtual void toObjectFromValue(Json::Value root);
|
|
int GetConfig(CommonParamST &config);
|
|
|
|
private:
|
|
CommonParamST _config;
|
|
};
|
|
|
|
class CommonParamToCheckConfigJson : public JsonCoversion
|
|
{
|
|
public:
|
|
CommonParamToCheckConfigJson() {}
|
|
virtual ~CommonParamToCheckConfigJson() {}
|
|
|
|
public:
|
|
virtual Json::Value toJsonValue();
|
|
virtual void toObjectFromValue(Json::Value root);
|
|
int GetConfig(CommonCheckConfigST &config);
|
|
|
|
private:
|
|
CommonCheckConfigST _config;
|
|
};
|
|
|
|
class CheckConfigJson : public JsonCoversion
|
|
{
|
|
public:
|
|
CheckConfigJson() {}
|
|
virtual ~CheckConfigJson() {}
|
|
|
|
public:
|
|
virtual Json::Value toJsonValue();
|
|
virtual void toObjectFromValue(Json::Value root);
|
|
int GetConfig(CheckConfigST &config);
|
|
|
|
private:
|
|
CheckConfigST _config;
|
|
};
|
|
|
|
class ChannelFuntonConfigJson : public JsonCoversion
|
|
{
|
|
public:
|
|
ChannelFuntonConfigJson() {}
|
|
virtual ~ChannelFuntonConfigJson() {}
|
|
|
|
public:
|
|
virtual Json::Value toJsonValue();
|
|
virtual void toObjectFromValue(Json::Value root);
|
|
int GetConfig(ALLChannelCheckFunction &config);
|
|
int GetFunction(Json::Value value, CheckFunction &function);
|
|
|
|
private:
|
|
ALLChannelCheckFunction _config;
|
|
};
|
|
|
|
class BaseFuntonConfigJson : public JsonCoversion
|
|
{
|
|
public:
|
|
BaseFuntonConfigJson() {}
|
|
virtual ~BaseFuntonConfigJson() {}
|
|
|
|
public:
|
|
virtual Json::Value toJsonValue();
|
|
virtual void toObjectFromValue(Json::Value root);
|
|
int GetConfig(BaseCheckFunction &config);
|
|
int GetFunction(Json::Value value);
|
|
|
|
private:
|
|
BaseCheckFunction _config;
|
|
};
|
|
#endif //
|