#include #include #include #include "iProperty_global.h" class ZxPathIndexer; class ZxPtyAttributeFile; // 属性配置文件管理载体 class I_PROPERTY_EXPORT ZxPtyFileManager : public QObject { Q_OBJECT public: /// @brief 单例模式 static ZxPtyFileManager* getInstance(); ZxPtyFileManager(); ~ZxPtyFileManager(); /// @brief 获取指定的属性表配置 ZxPtyAttributeFile* getAttributeFile(const QString& sTag, \ QString sFile = "", \ bool bForceReload = false); ZxPtyAttributeFile* getEmptyConfig(); // 加载+保存 void reload(); bool save(); signals: void preReload(); void reloaded(); private: void preparePathIndexer(); private: QMap m_mapPtyFiles; ZxPathIndexer* m_pPathIndexer; ZxPtyAttributeFile* m_pEmptyConfig; };