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