Changed BCValue

This commit is contained in:
2026-01-16 23:46:58 +01:00
parent c6c058279a
commit 6aec85418a
2 changed files with 75 additions and 12 deletions

View File

@@ -74,6 +74,69 @@ void BCValue::setFlag( BCValue::Flag flag, bool state) const
_valueFlags.setFlag( flag, state );
}
BCDevice::ID BCValue::getDeviceID() const noexcept
{
return _deviceID;
}
BC::ID BCValue::getRegisterID() const noexcept
{
return _registerID;
}
uint32_t BCValue::getRawValue() const noexcept
{
return _rawValue;
}
void BCValue::setRawValue(uint32_t newRawValue) const
{
_rawValue = newRawValue;
}
BCValue::ValueType BCValue::getValueType() const noexcept
{
return _valueType;
}
int BCValue::getIndexRow() const noexcept
{
return _indexRow;
}
void BCValue::setIndexRow(int newIndexRow)
{
_indexRow = newIndexRow;
}
QString BCValue::getLabel() const
{
return _label;
}
QString BCValue::getUnitLabel() const
{
return _unitLabel;
}
double BCValue::getFactor() const noexcept
{
return _factor;
}
const OptDouble BCValue::getOptMin() const
{
return _optMin;
}
const OptDouble BCValue::getOptMax() const
{
return _optMax;
}
void BCValue::setFromDouble( double value )
{
//if( _isReadOnly)