cmvr-es/include/monitor/monitor_factory.h

27 lines
454 B
C
Raw Normal View History

//
// 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