Cleanups.
This commit is contained in:
22
bcvalue.h
22
bcvalue.h
@@ -56,19 +56,6 @@
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @brief BCAbstractTransmitter ist das abstrakte Basisinterface für die eigentliche
|
||||
* Datenübertragung auf Treiberebene.
|
||||
*/
|
||||
|
||||
class BCAbstractTransmitter
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
virtual uint8_t readByte ( uint32_t deviceID, uint8_t registerID ) const = 0;
|
||||
virtual void writeByte( uint32_t deviceID, uint8_t registerID, uint8_t value_ ) const = 0;
|
||||
};
|
||||
|
||||
|
||||
class BCValueType;
|
||||
@@ -92,10 +79,7 @@ public:
|
||||
Q_DECLARE_FLAGS(States, State )
|
||||
|
||||
BCValue( const BCValueType* valueType_, BCDevice::ID deviceID_, BC::ID registerID_ );
|
||||
|
||||
QString readRawValueX( const BCAbstractTransmitter& transmitter ) const;
|
||||
void writeRawValueX( const BCAbstractTransmitter& transmitter ) const;
|
||||
|
||||
|
||||
mutable States state{BCValue::State::NoState};
|
||||
const BCValueType* valueType{};
|
||||
BCDevice::ID deviceID{BCDevice::ID::Invalid};
|
||||
@@ -111,7 +95,9 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(BCValue::States)
|
||||
|
||||
//Q_DECLARE_METATYPE(const BCValue&)
|
||||
|
||||
using BCValuePtr = std::shared_ptr<BCValue>;
|
||||
using BCValuePtr = std::shared_ptr<BCValue>;
|
||||
using BCValuePtrConst = std::shared_ptr<const BCValue>;
|
||||
|
||||
//using BCValueList = QList<BCValue>;
|
||||
using BCValueList = QList<BCValuePtr>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user