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