2025-03-12 14:17:53 +08:00

37 lines
936 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include "pub_utility_api/TimerThreadBase.h"
#include "pub_sysinfo_api/SysInfoApi.h"
#include "db_api_ex/CDbApi.h"
#include "db_sysinfo_api/CDbSysInfo.h"
namespace kbd_app
{
class CAtsTimeTableThread : public iot_public::CTimerThreadBase
{
public:
CAtsTimeTableThread(const iot_public::SRunAppInfo &stRunAppInfo);
virtual ~CAtsTimeTableThread();
/*
@brief 业务处理函数,必须继承实现自己的业务逻辑
*/
virtual void execute();
/*
@brief 初始化
@return 成功返回kbdSuccess失败返回错误码
*/
int initialize();
private:
iot_public::SRunAppInfo m_stRunAppInfo; //< 本应用相关运行参数
std::string m_sDirectoryPath; // 待处理文件夹的路径
iot_dbms::CDbApi* m_pDb; // 数据库接口
};
typedef boost::shared_ptr<CAtsTimeTableThread> CAtsTimeTableThreadPtr;
}