27 lines
454 B
C
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
|