You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AppFlow/FITK_Kernel/FITKEasyParam/FITKParamBoolGroup.h

98 lines
2.9 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/**********************************************************************
* @file FITKParamBoolGroup.h
* @brief bool组参数类型
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*********************************************************************/
#ifndef FITKParamBoolGroup_H
#define FITKParamBoolGroup_H
#include "FITKEasyParamAPI.h"
#include "FITKAbstractEasyParam.h"
namespace Core
{
class FITKParameter;
/**
* @brief bool组参数类型
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
class FITKEasyParamAPI FITKParamBoolGroup : public FITKAbstractEasyParam
{
Q_OBJECT;
public:
/**
* @brief 构造函数
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
FITKParamBoolGroup();
/**
* @brief 析构函数
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
virtual ~FITKParamBoolGroup();
/**
* @brief 获取参数类型
* @return FITKAbstractEasyParam::FITKEasyParamType 参数类型
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
virtual FITKAbstractEasyParam::FITKEasyParamType getParamType() override;
/**
* @brief 拷贝数据
* @param[i] data 被拷贝数据
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
virtual void copyParaData(FITKAbstractEasyParam* data) override;
/**
* @brief 设置数据
* @param[i] value 数据
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
void setValue(bool value);
/**
* @brief 获取数据
* @return bool 数据
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
bool getValue();
/**
* @brief 设置数据组(子数据)
* 只有在bool为true时数据组有效
* @param[i] g 数据组
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
void setValueGroup(FITKParameter* g);
/**
* @brief 获取数据组(子数据)
* 当bool为false时数据组为空
* @return FITKParameter* 数据组
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
FITKParameter* getValueGroup();
private:
/**
* @brief 数据
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
bool _value = false;
/**
* @brief 数据组
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
FITKParameter* _valueGroup = nullptr;
};
}
#endif