RTC Toolkit  2.0.0
Public Member Functions | List of all members
rtctk::telRepub::MudpiProcessor Class Reference

Processing MUDPI data received by UDP receiver: rtctk::telRepub::UdpReceiver. More...

#include <mudpiProcessor.hpp>

Public Member Functions

 MudpiProcessor (mudpi::uint16_t mudpi_topic_id, PubThreadBase<> &pub, componentFramework::ComponentMetricsIf &metrics, uint32_t statistic_msg_update_rate=60)
 MUDPI Processor constructor. More...
 
 MudpiProcessor (MudpiProcessor const &rhs)=delete
 Copy construction. More...
 
MudpiProcessoroperator= (MudpiProcessor const &rhs)=delete
 
virtual ~MudpiProcessor ()
 
std::error_code ProcessMudpi (mudpi::mudpiHeader *packet)
 Here the actual processing is done (frame by frame (MUDPI datagram)). More...
 
void Statistics ()
 Dump statistics. More...
 

Detailed Description

Processing MUDPI data received by UDP receiver: rtctk::telRepub::UdpReceiver.

Constructor & Destructor Documentation

◆ MudpiProcessor() [1/2]

rtctk::telRepub::MudpiProcessor::MudpiProcessor ( mudpi::uint16_t  mudpi_topic_id,
PubThreadBase<> &  pub,
componentFramework::ComponentMetricsIf metrics,
uint32_t  statistic_msg_update_rate = 60 
)
explicit

MUDPI Processor constructor.

Parameters
mudpi_topic_idMUDPI topic Id
pubreference to publisher thread
metricsreference to component Metrics Service
statistic_msg_update_rateupdate rate for statistic message: default every 60s

◆ MudpiProcessor() [2/2]

rtctk::telRepub::MudpiProcessor::MudpiProcessor ( MudpiProcessor const &  rhs)
delete

Copy construction.

It needs to be redefined because we use atomics.

◆ ~MudpiProcessor()

rtctk::telRepub::MudpiProcessor::~MudpiProcessor ( )
virtual

Member Function Documentation

◆ operator=()

MudpiProcessor& rtctk::telRepub::MudpiProcessor::operator= ( MudpiProcessor const &  rhs)
delete

◆ ProcessMudpi()

std::error_code rtctk::telRepub::MudpiProcessor::ProcessMudpi ( mudpi::mudpiHeader packet)

Here the actual processing is done (frame by frame (MUDPI datagram)).

Parameters
packetMUDPI packet to process.
Returns
In case of an error: missing frame, sample, frame out of range ... returns an error code of type: rtctk::telRepub::MudpiProcessingError

... but we report every time (frame) until synchronized again

◆ Statistics()

void rtctk::telRepub::MudpiProcessor::Statistics ( )

Dump statistics.


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