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.

95 lines
2.7 KiB
C

/**********************************************************************
* @file FITKParamInt.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*********************************************************************/
#ifndef FITKParamInt_H
#define FITKParamInt_H
#include "FITKEasyParamAPI.h"
#include "FITKAbstractEasyParam.h"
namespace Core
{
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
class FITKEasyParamAPI FITKParamInt : public FITKAbstractEasyParam
{
Q_OBJECT;
public:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
FITKParamInt();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
virtual ~FITKParamInt();
/**
* @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(int value);
/**
* @brief
* @return int
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
int getValue();
/**
* @brief
* @param[i] range
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
void setRange(int* range);
/**
* @brief
* @param[i] range
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
void getRange(int* range);
private:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
int _value = 0;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
int _range[2] = { -99999999,99999999 };
};
}
#endif