完成框架目录和模块重构;新增核心、单例、工具、加密及框架 SDK;统一任务、相机和 RPC 接口,并增加离线检测、相机标定、备份恢复、版本管理、崩溃守护和心跳监控功能。
36 lines
1006 B
C++
36 lines
1006 B
C++
#pragma once
|
|
|
|
#include <MvCameraControl.h>
|
|
|
|
#include <QMutex>
|
|
|
|
#if defined(_WIN32)
|
|
#if defined(HIK_DEVICE_CACHE_LIBRARY)
|
|
#define HIK_DEVICE_CACHE_API __declspec(dllexport)
|
|
#else
|
|
#define HIK_DEVICE_CACHE_API __declspec(dllimport)
|
|
#endif
|
|
#else
|
|
#define HIK_DEVICE_CACHE_API
|
|
#endif
|
|
|
|
class HIK_DEVICE_CACHE_API HikDevicelistCache {
|
|
public:
|
|
HikDevicelistCache();
|
|
HikDevicelistCache(const HikDevicelistCache&) = delete;
|
|
HikDevicelistCache& operator=(const HikDevicelistCache&) = delete;
|
|
|
|
MV_CC_DEVICE_INFO_LIST getDeviceInfoList() const;
|
|
MV_GENTL_IF_INFO_LIST getGentlIfInfoList() const;
|
|
void setDeviceInfoList(const MV_CC_DEVICE_INFO_LIST& deviceInfoList);
|
|
void setGentlIfInfoList(const MV_GENTL_IF_INFO_LIST& gentlIfInfoList);
|
|
|
|
private:
|
|
mutable QMutex m_mutex;
|
|
mutable MV_CC_DEVICE_INFO_LIST m_deviceInfoList;
|
|
MV_GENTL_IF_INFO_LIST m_gentlIfInfoList;
|
|
mutable bool m_deviceInfoListScanned = false;
|
|
};
|
|
|
|
HIK_DEVICE_CACHE_API HikDevicelistCache& appHikDeviceListCache();
|