/** * * @file FITKAbstractParamList.h * @brief 参数列表 * @author LiBaojun (libaojunqd@foxmail.com) * @date 2024-03-30 * */ #ifndef __FITKABSTRACTPARAM__LIST_H___ #define __FITKABSTRACTPARAM__LIST_H___ #include "FITKCoreAPI.h" #include "FITKAbstractDataManager.hpp" #include "FITKAbstractParam.hpp" namespace Core { /** * @brief 参数列表 * @author LiBaojun (libaojunqd@foxmail.com) * @date 2024-03-30 */ class FITKCoreAPI FITKAbstractParamList : public FITKAbstractDataManager { public: /** * @brief Construct a new FITKAbstractParamList object * @author LiBaojun (libaojunqd@foxmail.com) * @date 2024-03-30 */ explicit FITKAbstractParamList() = default; /** * @brief Destroy the FITKAbstractParamList object * @author LiBaojun (libaojunqd@foxmail.com) * @date 2024-03-30 */ virtual ~FITKAbstractParamList() = default; template /** * @brief 根据名称获取参数 * @param[i] name 名称 * @return T* * @author LiBaojun (libaojunqd@foxmail.com) * @date 2024-03-30 */ T* getParam(const QString& name) { return dynamic_cast(this->getDataByName(name)); } /** * @brief 参数列表转换为字符串 * @return QString * @author LiBaojun (libaojunqd@foxmail.com) * @date 2024-03-30 */ virtual QString params2String(); }; } #endif