26 lines
631 B
C++
26 lines
631 B
C++
#pragma once
|
||
|
||
#include "XNMonitorServer_global.h"
|
||
#include "DataMonitor.h"
|
||
|
||
/**
|
||
* @brief DataMonitor工厂类,用于创建不同类型的DataMonitor实例
|
||
*/
|
||
class XNMONITORSERVER_EXPORT DataMonitorFactory
|
||
{
|
||
public:
|
||
static DataMonitorBasePtr GetInstance(const std::string &interfaceName);
|
||
|
||
static void ReleaseInstance(const std::string &interfaceName);
|
||
|
||
// 检查接口是否存在
|
||
static bool HasInterface(const std::string &interfaceName);
|
||
|
||
// 获取所有已注册的接口名称
|
||
static std::vector<std::string> GetRegisteredInterfaces();
|
||
|
||
private:
|
||
DataMonitorFactory() = delete;
|
||
~DataMonitorFactory() = delete;
|
||
};
|