kbLogger 2.0.b1
The automotive ready test and logging program.
TranslatorSignal Class Referenceabstract

This class defines the API of the TranslatorSignal.

#include <translatorsignal.h>

Inheritance diagram for TranslatorSignal:
TranslatorSignalUser TranslatorSignalUserArray TranslatorSignalUserBool TranslatorSignalUserFloat32 TranslatorSignalUserFloat64 TranslatorSignalUserInt16 TranslatorSignalUserInt32 TranslatorSignalUserInt64 TranslatorSignalUserInt8 TranslatorSignalUserSpace TranslatorSignalUserString TranslatorSignalUserStruct TranslatorSignalUserUint16 TranslatorSignalUserUint32 TranslatorSignalUserUint64 TranslatorSignalUserUint8

Public Slots

TranslatorSignal related functions.
QString getName ()
 Returns the name of the signal.
 
virtual int translate ()
 Translate the TX message in a dry run. Returns the complete length of the resulting part of the message.
 
bool isBigEndian ()
 Returns true in case of BigEndian.
 
bool isLittleEndian ()
 Returns true in case of LittleEndian.
 
TranslatorSignalsetBigEndian ()
 Switches the signal to BigEndian.
 
TranslatorSignalsetLittleEndian ()
 Switches the signal to LittleEndian.
 
bool valueHasChanged ()
 Returns true, if the RX value has been changed by the last message received.
 
virtual bool isValid ()
 Returns true in case the value is valid.
 
virtual bool isTxValid ()
 Returns true in case the value is valid.
 
virtual TranslatorSignalcopyValue ()=0
 Copies the RX value to the TX value.
 
virtual ScriptValue getValue ()=0
 Returns the RX value.
 
virtual TranslatorSignalsetValue (ScriptValue svValue)=0
 Sets the TX value.
 
virtual TranslatorSignalsuppress ()
 Suppress the output in the translated RX message. But the signal is read and written as normal.
 
virtual TranslatorSignalencourage ()
 Enables the output in the translated RX message. The opposite of the suppress function.
 

Public Member Functions

void setRxValid (bool bValid)
 Sets the RX value to valid.
 
void setTxValid (bool bValid)
 Sets the TX value to valid.
 

Member Function Documentation

◆ setTxValid()

void setTxValid ( bool bValid)
Parameters
bValidReturns true in case the value is valid.