删除多余文件
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
#include "datacenter.h"
|
||||
|
||||
REGISTER_SERVICE(DataCenter);
|
||||
@@ -1,40 +0,0 @@
|
||||
#ifndef _DCAPP_DATACENTER_DATACENTER_H_
|
||||
#define _DCAPP_DATACENTER_DATACENTER_H_
|
||||
|
||||
#include <unistd.h>
|
||||
#include "service.h"
|
||||
|
||||
class DataCenter : public IService {
|
||||
public:
|
||||
DataCenter(){
|
||||
printf(".1.\n");
|
||||
};
|
||||
~DataCenter(){
|
||||
printf(".2.\n");
|
||||
}
|
||||
|
||||
/**
|
||||
* 服务初始化
|
||||
*/
|
||||
virtual int Init(void *pData) {
|
||||
printf("---DataCenter --Init.....\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 执行业务(业务循环) while(1){doSomeThings...}
|
||||
*/
|
||||
virtual void Exec() {
|
||||
while(1){
|
||||
printf("--- DataCenter doThins...\n");
|
||||
sleep(2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
virtual const char* getServiceName(){
|
||||
return "DataCenter";
|
||||
}
|
||||
};
|
||||
|
||||
#endif // _DCAPP_DATACENTER_DATACENTER_H_
|
||||
@@ -1,47 +0,0 @@
|
||||
/**
|
||||
* @文件路径: \datacenter\datacenter\inc\userinterface.h
|
||||
* @作者名称: zjp
|
||||
* @文件版本: V1.0.0
|
||||
* @创建日期: 2025-02-20 14:35:38
|
||||
* @简要说明:
|
||||
* @编辑时间: 2025-02-21 14:28:48
|
||||
* @Copyright: 2025 Shenzhen ShenBao Electrical instruments CO.,LTD. All Rights Reserved.
|
||||
*/
|
||||
#ifndef _DCAPP_DATACENTER_USERFID_H_
|
||||
#define _DCAPP_DATACENTER_USERFID_H_
|
||||
|
||||
#include "msg.h"
|
||||
|
||||
#include "bizservice.h"
|
||||
#include "queue.h"
|
||||
|
||||
class userfid : public IBizService
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* @brief 初始化
|
||||
*
|
||||
* @param param 输入初始化参数
|
||||
*/
|
||||
void Init(initparam_t *param);
|
||||
|
||||
/**
|
||||
* @brief 业务处理
|
||||
*
|
||||
* @param msg 输入消息体
|
||||
* @param param 可用数据库连接句柄
|
||||
* @return int 返回值 成功为0 失败<0 (-1待处理数据格式错误 -2操作数据库失败 -3其它错误)
|
||||
*/
|
||||
int HandleMsg(const msg_t msg, handparam_t *param);
|
||||
|
||||
/**
|
||||
* @brief 获取FID服务标识
|
||||
*
|
||||
* @return FID服务标识
|
||||
*/
|
||||
std::string GetFID(void);
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -1,52 +0,0 @@
|
||||
/**
|
||||
* @文件路径: \datacenter\datacenter\src\userinterface.cpp
|
||||
* @作者名称: zjp
|
||||
* @文件版本: V1.0.0
|
||||
* @创建日期: 2025-02-20 10:13:44
|
||||
* @简要说明:
|
||||
* @编辑时间: 2025-02-21 15:06:47
|
||||
* @Copyright: 2025 Shenzhen ShenBao Electrical instruments CO.,LTD. All Rights Reserved.
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "bizservice.h"
|
||||
#include "msg.h"
|
||||
#include "userinterface.h"
|
||||
|
||||
/**
|
||||
* @brief 初始化
|
||||
*
|
||||
* @param param 输入初始化参数
|
||||
*/
|
||||
void userfid::Init(initparam_t *param)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 业务处理
|
||||
*
|
||||
* @param msg 输入消息体
|
||||
* @param param 可用数据库连接句柄
|
||||
* @return int 返回值 成功为1 失败为0
|
||||
*/
|
||||
int userfid::HandleMsg(const msg_t msg, handparam_t *param)
|
||||
{
|
||||
// 正常业务处理...
|
||||
|
||||
// 业务处理结果输出
|
||||
WriteResponseMsg(msg);
|
||||
return 0;
|
||||
}
|
||||
/**
|
||||
* @brief 获取FID
|
||||
*
|
||||
* @return const std::string FID名称
|
||||
*/
|
||||
std::string userfid::GetFID(void)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
Reference in New Issue
Block a user