/** @file InterLockInterface.h @brief 闭锁参数接口库 @author 周正龙 */ #pragma once #include #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 namespace iot_service { /** @brief 进程管理访问库接口类 */ class CInterLockInterface { public: /** @brief 初始化 @return 成功返回iotSuccess,失败返回相应错误码 */ virtual int initialize() =0 ; /** @brief 判断联锁关系 @return 成功返回iotSuccess,失败返回相应错误码 */ virtual int CheckCtrlInterlock(const char *strCtrlPointName, const double dTargValue,std::string &strResult, bool &bSuccess) =0; }; typedef boost::shared_ptr CInterLockInterfacePtr; /* @brief 创建闭锁参数访问接口实例 */ SERVICE_INTERLOCK_API CInterLockInterfacePtr getInterLockInstance(const iot_public::SRunAppInfo &stRunAppInfo,const std::string& strProcess); }