Allow for decoded DBC signal output without attaching the name to the

resulting string. Used by CSV output.
This commit is contained in:
Collin Kidder
2023-07-11 20:36:17 -04:00
parent 627ac8b899
commit e2438efac5
3 changed files with 18 additions and 11 deletions
+2 -2
View File
@@ -114,11 +114,11 @@ public: //TODO: this is sloppy. It shouldn't all be public!
DBC_SIGNAL *self;
DBC_SIGNAL();
bool processAsText(const CANFrame &frame, QString &outString, bool outputName = true);
bool processAsText(const CANFrame &frame, QString &outString, bool outputName = true, bool outputUnit = true);
bool processAsInt(const CANFrame &frame, int32_t &outValue);
bool processAsDouble(const CANFrame &frame, double &outValue);
bool getValueString(int64_t intVal, QString &outString);
QString makePrettyOutput(double floatVal, int64_t intVal, bool outputName = true, bool isInteger = false);
QString makePrettyOutput(double floatVal, int64_t intVal, bool outputName = true, bool isInteger = false, bool outputUnit = true);
QString processSignalTree(const CANFrame &frame);
DBC_ATTRIBUTE_VALUE *findAttrValByName(QString name);
DBC_ATTRIBUTE_VALUE *findAttrValByIdx(int idx);