JS8Call-Improved master
Loading...
Searching...
No Matches
DecodedText Class Reference

Wraps a decoded frame and provides parsed accessors. More...

#include <DecodedText.h>

Public Member Functions

 DecodedText (JS8::Event::Decoded const &)
 Construct from a decoder event record.
 DecodedText (QString const &frame, int bits, int submode)
 Construct from a raw decoded frame string.
int bits () const
QString compoundCall () const
QStringList directedMessage () const
float dt () const
QString extra () const
QString frame () const
quint8 frameType () const
int frequencyOffset () const
bool isAlt () const
bool isCompound () const
bool isDirectedMessage () const
bool isHeartbeat () const
bool isLowConfidence () const
QString message () const
int snr () const
int submode () const
int time () const
 Timestamp as produced by the decoder (use decode_time() to split).
QStringList messageWords () const
 Tokenize message into words.
QString string () const
 Return a human-readable representation of the decoded frame.

Detailed Description

Wraps a decoded frame and provides parsed accessors.

Construct from a decoder JS8::Event::Decoded or from a raw frame string. Provides methods to inspect whether the frame is a heartbeat, a directed message, a compound call, and to retrieve individual message words.

Constructor & Destructor Documentation

◆ DecodedText() [1/2]

DecodedText::DecodedText ( JS8::Event::Decoded const & decoded)
explicit

Construct from a decoder event record.

Construct a new Decoded Text:: Decoded Text object.

Parameters
decoded
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DecodedText() [2/2]

DecodedText::DecodedText ( QString const & frame,
int bits,
int submode )
explicit

Construct from a raw decoded frame string.

Construct a new Decoded Text:: Decoded Text object.

Parameters
frameRaw decoded text.
bitsNumber of decoded bits.
submodeSubmode index.
frame
bits
submode
Here is the call graph for this function:

Member Function Documentation

◆ bits()

int DecodedText::bits ( ) const
inline

Number of bits decoded.

Here is the caller graph for this function:

◆ compoundCall()

QString DecodedText::compoundCall ( ) const
inline

Compound calls, if present.

Here is the caller graph for this function:

◆ directedMessage()

QStringList DecodedText::directedMessage ( ) const
inline

Tokenized directed message components.

Here is the caller graph for this function:

◆ dt()

float DecodedText::dt ( ) const
inline

Time offset (seconds) between expected and observed frame boundary.

Here is the caller graph for this function:

◆ extra()

QString DecodedText::extra ( ) const
inline

Extra metadata string from the decoded frame.

Here is the caller graph for this function:

◆ frame()

QString DecodedText::frame ( ) const
inline

Original decoded frame string.

Here is the caller graph for this function:

◆ frameType()

quint8 DecodedText::frameType ( ) const
inline

Frame type identifier (protocol-specific).

Here is the caller graph for this function:

◆ frequencyOffset()

int DecodedText::frequencyOffset ( ) const
inline

Frequency offset in Hz from nominal.

Here is the caller graph for this function:

◆ isAlt()

bool DecodedText::isAlt ( ) const
inline

Whether this frame used the alternate encoding.

Here is the caller graph for this function:

◆ isCompound()

bool DecodedText::isCompound ( ) const
inline

True when the decoded frame contains a compound call.

Here is the caller graph for this function:

◆ isDirectedMessage()

bool DecodedText::isDirectedMessage ( ) const
inline

True when this is a directed message.

Here is the caller graph for this function:

◆ isHeartbeat()

bool DecodedText::isHeartbeat ( ) const
inline

True when the frame represents a heartbeat.

Here is the caller graph for this function:

◆ isLowConfidence()

bool DecodedText::isLowConfidence ( ) const
inline

True when the decoder flagged the frame as low confidence.

Here is the caller graph for this function:

◆ message()

QString DecodedText::message ( ) const
inline

Message text extracted from the frame.

Here is the caller graph for this function:

◆ messageWords()

QStringList DecodedText::messageWords ( ) const

Tokenize message into words.

Get the message words.

Returns
List of message words.
QStringList
Here is the caller graph for this function:

◆ snr()

int DecodedText::snr ( ) const
inline

Signal-to-noise ratio in dB (integer).

Here is the caller graph for this function:

◆ string()

QString DecodedText::string ( ) const

Return a human-readable representation of the decoded frame.

Get the string representation suitable for ALL.TXT.

Returns
QString
Here is the call graph for this function:
Here is the caller graph for this function:

◆ submode()

int DecodedText::submode ( ) const
inline

Submode index used for decoding.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: