You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
930 B
C

2 years ago
#pragma once
#ifndef _INCLUDE_COREWORK_MANAGE_H
#define _INCLUDE_COREWORK_MANAGE_H
#include "sysapi.h"
#define ins CManage::Get_Instance()
struct TestData
{//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
char sn[MAX_NAME_LEN]; //<2F><>ά<EFBFBD><CEAC>
char ate[MAX_NAME_LEN]; //<2F>ξ߱<CEBE><DFB1><EFBFBD>
char start[MAX_NAME_LEN]; //<2F><>ʼʱ<CABC><CAB1> YYYY/MM/DD HH:MM:SS
char end[MAX_NAME_LEN]; //<2F><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1> YYYY/MM/DD HH:MM:SS
int index; //<2F>ڼ<EFBFBD><DABC>β<EFBFBD><CEB2>ԣ<EFBFBD>Ĭ<EFBFBD><C4AC>Ϊ1
int status; //TestStatus
};
class CManage
{
public:
static CManage* Get_Instance();
static void ReleaseInstance();
CManage(void);
~CManage(void);
int Init();
int SendCustomCmd(const char* msg, char* res = NULL);
int RecvCustomCmd(char* res, const char* key/* = 0*/, int timeout/* = 0*/);
int GetCommandDesc(char* pszcmddesc);
protected:
void Deinit();
private:
static CManage *m_pInstance;
};
#endif //<2F><>ֹ<EFBFBD>ظ<EFBFBD><D8B8><EFBFBD><EFBFBD><EFBFBD>