1 Star 0 Fork 7

chx/基于boost的消息处理框架

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
process_data.h 1.36 KB
Copy Edit 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__ */
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/chxchxkkk/msg_process.git
git@gitee.com:chxchxkkk/msg_process.git
chxchxkkk
msg_process
基于boost的消息处理框架
master

Search