GrabBag/VrConfig/_Inc/VrConfig.h

50 lines
1.1 KiB
C
Raw Normal View History

2025-06-08 12:48:04 +08:00
#ifndef VRCONFIG_H
#define VRCONFIG_H
#include "IVrConfig.h"
#include "tinyxml2.h"
2025-06-08 12:48:04 +08:00
#include <string>
/**
* @brief IVrConfig接口的配置类
2025-06-08 12:48:04 +08:00
*/
class CVrConfig : public IVrConfig
{
public:
/**
* @brief
2025-06-08 12:48:04 +08:00
*/
CVrConfig();
/**
* @brief
2025-06-08 12:48:04 +08:00
*/
virtual ~CVrConfig();
/**
* @brief
* @param filePath
* @return
2025-06-08 12:48:04 +08:00
*/
virtual ConfigResult LoadConfig(const std::string& filePath) override;
/**
* @brief
* @param filePath
* @param configResult
* @return
2025-06-08 12:48:04 +08:00
*/
virtual bool SaveConfig(const std::string& filePath, ConfigResult& configResult) override;
/**
* @brief
* @param notify
*/
virtual void SetConfigChangeNotify(IVrConfigChangeNotify* notify) override;
2025-06-08 12:48:04 +08:00
private:
IVrConfigChangeNotify* m_pNotify = nullptr; // 配置改变通知回调
2025-06-08 12:48:04 +08:00
};
#endif // VRCONFIG_H