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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# pragma once
# ifndef _INCLUDE_COREWORK_MANAGE_H
# define _INCLUDE_COREWORK_MANAGE_H
# include "sysapi.h"
# define ins CManage::Get_Instance()
struct TestData
{ //测试数据
char sn [ MAX_NAME_LEN ] ; //二维码
char ate [ MAX_NAME_LEN ] ; //治具编码
char start [ MAX_NAME_LEN ] ; //起始时间 YYYY/MM/DD HH:MM:SS
char end [ MAX_NAME_LEN ] ; //结束时间 YYYY/MM/DD HH:MM:SS
int index ; //第几次测试? 默认为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 //防止重复包含