2025-03-12 10:03:16 +08:00
|
|
|
|
/**
|
|
|
|
|
|
@file InterLockInterface.h
|
|
|
|
|
|
@brief 闭锁参数接口库
|
|
|
|
|
|
@author 周正龙
|
|
|
|
|
|
*/
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
#include "boost/shared_ptr.hpp"
|
|
|
|
|
|
#include "boost/make_shared.hpp"
|
|
|
|
|
|
#include "Export.h"
|
|
|
|
|
|
#include "pub_sysinfo_api/SysInfoApi.h"
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef SERVICE_INTERLOCK_EXPORTS
|
|
|
|
|
|
#define SERVICE_INTERLOCK_API G_DECL_EXPORT
|
|
|
|
|
|
#else
|
|
|
|
|
|
#define SERVICE_INTERLOCK_API G_DECL_IMPORT
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
2025-03-12 14:17:01 +08:00
|
|
|
|
namespace iot_service
|
2025-03-12 10:03:16 +08:00
|
|
|
|
{
|
|
|
|
|
|
/**
|
|
|
|
|
|
@brief 进程管理访问库接口类
|
|
|
|
|
|
*/
|
|
|
|
|
|
class CInterLockInterface
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
/**
|
|
|
|
|
|
@brief 初始化
|
2025-03-12 15:01:58 +08:00
|
|
|
|
@return 成功返回iotSucces,失败返回相应错误码
|
2025-03-12 10:03:16 +08:00
|
|
|
|
*/
|
|
|
|
|
|
virtual int initialize() =0 ;
|
|
|
|
|
|
/**
|
|
|
|
|
|
@brief 判断联锁关系
|
2025-03-12 15:01:58 +08:00
|
|
|
|
@return 成功返回iotSucces,失败返回相应错误码
|
2025-03-12 10:03:16 +08:00
|
|
|
|
*/
|
|
|
|
|
|
virtual int CheckCtrlInterlock(const char *strCtrlPointName, const double dTargValue,std::string &strResult, bool &bSuccess) =0;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
typedef boost::shared_ptr<CInterLockInterface> CInterLockInterfacePtr;
|
|
|
|
|
|
|
|
|
|
|
|
/* @brief 创建闭锁参数访问接口实例 */
|
2025-03-12 14:17:01 +08:00
|
|
|
|
SERVICE_INTERLOCK_API CInterLockInterfacePtr getInterLockInstance(const iot_public::SRunAppInfo &stRunAppInfo,const std::string& strProcess);
|
2025-03-12 10:03:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
|