a
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
// GD10OperCmd.h: interface for the CGD10OperCmd class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if !defined(AFX_GD10OPERCMD_H__BEA751E5_7B04_4171_85DC_D4A46EC6AAA3__INCLUDED_)
|
||||
#define AFX_GD10OPERCMD_H__BEA751E5_7B04_4171_85DC_D4A46EC6AAA3__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
//该类为上微机模拟GD10的操作命令的实现,来代替在USB环境下,下微机无法操作USB内的文件
|
||||
class CGD10OperCmd
|
||||
{
|
||||
public:
|
||||
CGD10OperCmd();
|
||||
virtual ~CGD10OperCmd();
|
||||
|
||||
static CGD10OperCmd* GetInstance();
|
||||
//增加工程
|
||||
int project_add(const char *mac,const char *projectcn);
|
||||
//删除工程
|
||||
bool project_delete(const char *mac,const char *projectcn);
|
||||
//增加测区
|
||||
int testzone_add(const char *projectcn,const char *testzonecn,const char *type);
|
||||
//删除测区
|
||||
int testzone_delete(const char *projectcn,const char *testzonecn);
|
||||
//增加脚本
|
||||
int script_add(const char *scriptcn,const char *scriptname,const char *mudiumid);
|
||||
//删除脚本
|
||||
bool script_delete(const char *scriptcn);
|
||||
//删除测试任务
|
||||
bool meas_delete(const char *projectcn, const char *testzonecn, const char *measuringcn);
|
||||
//设置测试参数
|
||||
bool set_param(const CString& strParam);
|
||||
//去注册
|
||||
bool unregister_user(CString strMacAddr);
|
||||
|
||||
//从GD设备读取设备市场数据,并清除以获取的数据
|
||||
bool loadDeviceMarkDataFromGD();
|
||||
static UINT LoadDevMarkDataFormGDThread(LPVOID lParam);
|
||||
protected:
|
||||
//method
|
||||
bool AddProjectInLocalHost(const char *pProjectCN);
|
||||
bool AddProjectInMacXml(const char* pMac,const char *pProjectCN);
|
||||
bool DelProjectInMacXml(const char* pMac,const char *pProjectCN);
|
||||
bool DelProjectInLocalHost(const char *pProjectCN);
|
||||
bool DeleteTaskInTz(const CString &strTzPath, const char*pMeasuringcn);
|
||||
bool DeleteTaskFile(const CString &strTzFolderPath, const char*pMeasuringcn);
|
||||
//attributes
|
||||
static CGD10OperCmd* m_pGD10Oper;
|
||||
|
||||
};
|
||||
|
||||
#endif // !defined(AFX_GD10OPERCMD_H__BEA751E5_7B04_4171_85DC_D4A46EC6AAA3__INCLUDED_)
|
||||
Reference in New Issue
Block a user