RTC Toolkit  1.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 (PubThreadBase<> &pub, uint32_t statisticMsgUpdateRate=5000)
 MUDPI Processor constructor. More...
 
 MudpiProcessor (MudpiProcessor const &rhs)
 Copy construction. More...
 
 ~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 ( PubThreadBase<> &  pub,
uint32_t  statisticMsgUpdateRate = 5000 
)
explicit

MUDPI Processor constructor.

Parameters
pubreference to publisher thread
statisticMsgUpdateRateupdate rate for statistic message after every statisticMsgUpdateRate message/MUDPI frame the statistic is printed

◆ MudpiProcessor() [2/2]

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

Copy construction.

It needs to be redefined because we use atomics.

◆ ~MudpiProcessor()

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

Member Function Documentation

◆ 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: