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.
|
|
|
|
#include "FITKParamBool.h"
|
|
|
|
|
|
|
|
|
|
namespace Core
|
|
|
|
|
{
|
|
|
|
|
FITKParamBool::FITKParamBool()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FITKParamBool::~FITKParamBool()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FITKAbstractEasyParam::FITKEasyParamType FITKParamBool::getParamType()
|
|
|
|
|
{
|
|
|
|
|
return FITKAbstractEasyParam::FITKEasyParamType::FEPBool;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void FITKParamBool::copyParaData(FITKAbstractEasyParam* data)
|
|
|
|
|
{
|
|
|
|
|
//判断同一类型数据对象
|
|
|
|
|
if (!data || data->getParamType() != this->getParamType())return;
|
|
|
|
|
FITKParamBool* oldData = dynamic_cast<FITKParamBool*>(data);
|
|
|
|
|
if (!oldData)return;
|
|
|
|
|
//设置名称
|
|
|
|
|
this->setDataObjectName(data->getDataObjectName());
|
|
|
|
|
//拷贝参数
|
|
|
|
|
this->_value = oldData->_value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void FITKParamBool::setValue(bool value)
|
|
|
|
|
{
|
|
|
|
|
_value = value;
|
|
|
|
|
emit sigDataChange();
|
|
|
|
|
}
|
|
|
|
|
bool FITKParamBool::getValue()
|
|
|
|
|
{
|
|
|
|
|
return _value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|