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/FITKParamBool.h

74 lines
2.0 KiB
C++

/**********************************************************************
* @file FITKParamBool.h
* @brief Bool类型类型参数
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*********************************************************************/
#ifndef FITKParamBool_H
#define FITKParamBool_H
#include "FITKEasyParamAPI.h"
#include "FITKAbstractEasyParam.h"
namespace Core
{
/**
* @brief Bool类型参数
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
class FITKEasyParamAPI FITKParamBool : public FITKAbstractEasyParam
{
Q_OBJECT;
public:
/**
* @brief 构造函数
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
FITKParamBool();
/**
* @brief 析构函数
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
virtual ~FITKParamBool();
/**
* @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 获取数据
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
bool getValue();
private:
/**
* @brief 数据
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
bool _value = false;
};
}
#endif