kbLogger 2.0.b1
The automotive ready test and logging program.
TranslatorSignalUserStruct Class Reference

This class defines the API of the TranslatorSignalUserStruct.

#include <translatorsignaluserstruct.h>

Inheritance diagram for TranslatorSignalUserStruct:
TranslatorSignalUser TranslatorSignal

Public Slots

TranslatorSignal related functions.
virtual int translate ()
 Translate the TX message in a dry run. Returns the complete length of the resulting part of the message.
 
TranslatorSignalappend (TranslatorSignal *)
 Appends a signal.
 
TranslatorSignalsetLengthFieldLength (uint8_t uLength)
 Sets the length of the length field.
 
virtual TranslatorSignalcopyValue ()
 Copies the RX value to the TX value.
 
ScriptValue getValue (unsigned int uValue)
 Returns the RX value for the given index.
 
ScriptValue getValue (QString strValue)
 Returns the RX value for the given signal name.
 
virtual ScriptValue getValue ()
 Is not supported on Struct. Returns the invalid (empty) value.
 
TranslatorSignalgetSignal (QString strSignalName)
 Gets the signal for the given signal.
 
unsigned int getSignalCount ()
 Returns the current count of signals in this struct.
 
virtual TranslatorSignalsetValue (ScriptValue svValue)
 Sets the TX value.
 
TranslatorSignalsetValue (unsigned int uValueIndex, ScriptValue svValue)
 Sets the TX value for the given index.
 
TranslatorSignalsetValue (QString strValue, ScriptValue svValue)
 Sets the TX value for the given signal name.
 
virtual bool isTxValid ()
 Returns true in case the value is valid.
 
- Public Slots inherited from TranslatorSignalUser
virtual int translate ()
 Translate the TX message in a dry run. Returns the complete length of the resulting part of the message.
 
bool isHex ()
 Returns true in case of BigEndian.
 
bool isDecimal ()
 Returns true in case of LittleEndian.
 
TranslatorSignalUsersetHex ()
 Switches the signal to hexadecimal.
 
TranslatorSignalUsersetDecimal ()
 Switches the signal to decimal.
 
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.
 
- Public Slots inherited from TranslatorSignal
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.
 

Additional Inherited Members

- Public Member Functions inherited from TranslatorSignalUser
- Public Member Functions inherited from TranslatorSignal
void setRxValid (bool bValid)
 Sets the RX value to valid.
 
void setTxValid (bool bValid)
 Sets the TX value to valid.
 
- Public Attributes inherited from TranslatorSignal
- Protected Attributes inherited from TranslatorSignal

Member Function Documentation

◆ getSignal

TranslatorSignal * getSignal ( QString strSignalName)
slot
Parameters
strSignalNameGets the signal for the given signal.

◆ getValue [1/2]

ScriptValue getValue ( QString strValue)
slot
Parameters
strValueReturns the RX value for the given signal name.

◆ getValue [2/2]

ScriptValue getValue ( unsigned int uValue)
slot
Parameters
uValueReturns the RX value for the given index.

◆ setValue [1/3]

TranslatorSignal * setValue ( QString strValue,
ScriptValue svValue )
slot
Parameters
svValueSets the TX value for the given signal name.

◆ setValue [2/3]

TranslatorSignal * setValue ( ScriptValue svValue)
virtualslot
Parameters
svValueSets the TX value.

◆ setValue [3/3]

TranslatorSignal * setValue ( unsigned int uValueIndex,
ScriptValue svValue )
slot
Parameters
svValueSets the TX value for the given index.