Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
process_data.h 1.36 KB
Copy Edit Web IDE Raw Blame History
fens authored 2019-02-27 15:37 . 1.首次上传代码
/******************************************************************************
Copyright (C), 2001-2011, DCN Co., Ltd. https://blog.csdn.net/wuquan_1230
******************************************************************************
File Name : tm_ui_process_data.h
Version : Initial Draft
Author : fens
Created : 2015/8/28
Last Modified :
Description : tm_ui_process_data.cpp header file
Function List :
History :
1.Date : 2015/8/28
Author : fens
Modification: Created file
******************************************************************************/
#ifndef __TM_UI_PROCESS_DATA_H__
#define __TM_UI_PROCESS_DATA_H__
#include <iostream>
#include <map>
#include "public.h"
#include <boost/bind.hpp>
#include <boost/function.hpp>
using namespace std;
class CDataProcess;
//boost bind def
typedef boost::function<int(string,const void *, int)> MsgProcFunc;
class CDataProcess
{
private:
map<string,MsgProcFunc > devCmdActionMap;
protected:
CDataProcess();
~CDataProcess();
static CDataProcess *m_instance;
public:
static CDataProcess *getInstance();
int registProcHandle(string cmd, MsgProcFunc handle);
int processDataFunction(string cmd, const void *pData, int iDataLen);
};
#endif /* __TM_UI_PROCESS_DATA_H__ */

Comment ( 0 )

Sign in for post a comment