1#ifndef CANSIGNALENCODER_P_H
2#define CANSIGNALENCODER_P_H
22 void encodeSignal(
const QString& name,
const QVariant& val);
26 void signalToRaw(
const uint32_t
id,
const CANsignal& sigDesc,
const QVariant& sigVal,
const uint32_t updateCycle);
40 const QString _nameProperty =
"name";
41 const QString _dbProperty =
"CAN database";
42 std::map<uint32_t, QByteArray> _rawCache;
49 std::make_tuple(_nameProperty, QVariant::String,
true, cf(
nullptr)),
Context CanSignalEncoderCtx
Definition cansignalencoder.h:14
Definition candbhandler.h:14
QWidget * createPropertyWidget()
Definition candbhandler.cpp:96
Definition cansignalencoder.h:16
Definition cansignalencoder_p.h:13
std::map< QString, QVariant > _props
Definition cansignalencoder_p.h:31
void setSettings(const QJsonObject &json)
Definition cansignalencoder_p.cpp:63
void initCacheAndTimers()
Definition cansignalencoder_p.cpp:204
bool _simStarted
Definition cansignalencoder_p.h:29
CanSignalEncoderCtx _ctx
Definition cansignalencoder_p.h:30
std::vector< std::unique_ptr< QTimer > > _cycleTimers
Definition cansignalencoder_p.h:33
QJsonObject getSettings()
Definition cansignalencoder_p.cpp:52
void encodeSignal(const QString &name, const QVariant &val)
Definition cansignalencoder_p.cpp:74
CanDbHandler _db
Definition cansignalencoder_p.h:32
ComponentInterface::ComponentProperties getSupportedProperties() const
Definition cansignalencoder_p.cpp:47
std::vector< ComponentProperty > ComponentProperties
Definition componentinterface.h:66
std::function< QWidget *(void)> CustomEditFieldCbk
Definition componentinterface.h:64