2026-02-21 00:28:04 +08:00

30 lines
948 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef CONFIGMANAGER_H
#define CONFIGMANAGER_H
#include "IVrConfig.h" // 必须在 BaseConfigManager.h 之前包含
#include "BaseConfigManager.h"
/**
* @brief StatorPosition 应用的配置管理器
*
* 继承自 BaseConfigManager提供 StatorPosition 特定的配置处理逻辑
* 特别是工作点切换功能
*/
class ConfigManager : public BaseConfigManager
{
public:
ConfigManager() = default;
~ConfigManager() = default;
// 重写 Initialize 以禁用共享内存监控StatorPositionApp 不需要)
bool Initialize(const std::string& configFilePath = "") override;
// 实现 LoadConfigFromFile 以适配 StatorPosition 的 IVrConfig API
bool LoadConfigFromFile(const std::string& filePath) override;
// StatorPosition 特定的工作点切换处理
bool OnSwitchWorkPositionCommand(const SwitchWorkPositionParam& param) override;
};
#endif // CONFIGMANAGER_H