Backup.
This commit is contained in:
@@ -37,8 +37,18 @@ BCDataType::BCDataType()
|
||||
|
||||
}
|
||||
|
||||
BCDataType::BCDataType( TypeID ID_, QString unitLabel_, optDouble factor_, optDouble min_, optDouble max_ )
|
||||
: ID{ID_}, unitLabel{unitLabel_}, factor{factor_}, min{min_}, max{max_}
|
||||
BCDataType::BCDataType( QString unitLabel_, double factor_, optDouble min_, optDouble max_ )
|
||||
: unitLabel{unitLabel_}, factor{factor_}, min{min_}, max{max_}
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
double BCDataType::readValue( const BCAbstractTransmitter& transmitter )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void BCDataType::writeValue( const BCAbstractTransmitter& transmitter )
|
||||
{
|
||||
|
||||
}
|
||||
@@ -46,19 +56,25 @@ BCDataType::BCDataType( TypeID ID_, QString unitLabel_, optDouble factor_, optDo
|
||||
///-------------------------------
|
||||
|
||||
|
||||
BCDataItem::BCDataItem(const BCDataType& valueType_, BCDevice::ID deviceID_, BC::ID registerID_)
|
||||
BCDataItem::BCDataItem(const BCDataType* valueType_, BCDevice::ID deviceID_, BC::ID registerID_)
|
||||
: valueType{valueType_}, deviceID{deviceID_}, registerID{registerID_}
|
||||
{
|
||||
value = "--";
|
||||
}
|
||||
|
||||
void BCDataItem::readRawValue( const BCAbstractTransmitter& transmitter ) const
|
||||
void BCDataItem::readRawValueX( const BCAbstractTransmitter& transmitter ) const
|
||||
{
|
||||
uint32_t rawValue = transmitter.readRawValue( deviceID, registerID );
|
||||
qDebug() << " --- READ X!";
|
||||
//uint32_t rawValue = transmitter.readRawValue( deviceID, registerID );
|
||||
|
||||
//const BCDataType& xxx = valueType.value().get();
|
||||
|
||||
//uint32_t result = std::visit( myVisi, BCTypeVariant{valueType} );
|
||||
}
|
||||
|
||||
void BCDataItem::writeRawValue( const BCAbstractTransmitter& transmitter ) const
|
||||
void BCDataItem::writeRawValueX( const BCAbstractTransmitter& transmitter ) const
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user