46 lines
1.2 KiB
C
Raw Normal View History

/**
@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
{
/**
@brief 访
*/
class CInterLockInterface
{
public:
/**
@brief
2025-03-12 15:01:58 +08:00
@return iotSucces,
*/
virtual int initialize() =0 ;
/**
@brief
2025-03-12 15:01:58 +08:00
@return iotSucces,
*/
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);
}