61 lines
788 B
Plaintext
61 lines
788 B
Plaintext
#ifndef BCRawValue_H
|
|
#define BCRawValue_H
|
|
|
|
|
|
class BCRawValueRunner;
|
|
|
|
#include <QString>
|
|
#include <bc.h>
|
|
|
|
struct BCRawValue
|
|
{
|
|
|
|
BCRawValue( BCDevice::ID deviceID, BC::ID targetID );
|
|
|
|
void setLongValue( uint8_t value);
|
|
uint8_t getLongValue();
|
|
|
|
QString label;
|
|
BCDevice::ID deviceID{BCDevice::ID::Invalid};
|
|
BC::ID targetID{BC::ID::Invalid};
|
|
|
|
};
|
|
|
|
struct BCUnit
|
|
{
|
|
enum class ID
|
|
{
|
|
|
|
};
|
|
|
|
};
|
|
|
|
class BCValue
|
|
{
|
|
public:
|
|
BCValue( BCDevice::ID deviceID, BC::ID targetID );
|
|
|
|
void setLongValue( uint8_t value);
|
|
uint8_t getLongValue();
|
|
|
|
QString label;
|
|
BCDevice::ID deviceID{BCDevice::ID::Invalid};
|
|
BC::ID targetID{BC::ID::Invalid};
|
|
double _value{-1};
|
|
};
|
|
|
|
|
|
class BCValueShort
|
|
{
|
|
|
|
};
|
|
|
|
|
|
class BCValueLong
|
|
{
|
|
|
|
};
|
|
|
|
|
|
#endif // BCRawValue_H
|