cmvr-es/include/monitor/monitor_factory.h
2025-08-21 13:56:39 +08:00

27 lines
454 B
C++

//
// Created by xtkuang on 2025/6/6.
//
#ifndef MONITOR_FACTORY_H
#define MONITOR_FACTORY_H
#include "monitor/abstract_monitor.h"
namespace cmvr::monitor
{
class MonitorFactory
{
public:
MonitorFactory() = default;
template <typename MonitorType>
std::shared_ptr<MonitorType> create(const XmlNode& cfg);
std::shared_ptr<AbstractMonitor> create(const XmlNode& cfg);
};
}
#endif //MONITOR_FACTORY_H