Fetch the repository succeeded.
This action will force synchronization from fens/基于boost的消息处理框架, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
/******************************************************************************
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__ */
Sign in for post a comment
Comment ( 0 )