DAQ Driver
Formatting Class Reference

The Formatting class Handled anything related to the format of the streaming data. More...

#include <Driver/DriverComponents/Formatting.h>

Inheritance diagram for Formatting:
Collaboration diagram for Formatting:

Public Member Functions

 Formatting (pMessageProcessor &messageProcessor)
 
void setDataFormat (const DataFormat &dataFormat)
 setDataFormat Sets a new data format More...
 
DataFormat dataFormat () const
 dataFormat Gets the current data form More...
 
void reset ()
 reset Resets the formatting to default More...
 
- Public Member Functions inherited from AbstractDriverComponent
 AbstractDriverComponent (pMessageProcessor messageProcessor)
 

Protected Member Functions

void handleNewFormatRecieved (const google::protobuf::Message &message)
 
void swapDataFormat (const DataFormat &newFormat)
 

Private Attributes

DataFormat m_dataFormat
 
std::mutex m_dataFormatMutex
 

Additional Inherited Members

- Protected Attributes inherited from AbstractDriverComponent
pMessageProcessor m_messageProcessor
 

Detailed Description

The Formatting class Handled anything related to the format of the streaming data.

Definition at line 19 of file Formatting.h.

Constructor & Destructor Documentation

◆ Formatting()

Formatting::Formatting ( pMessageProcessor &  messageProcessor)

Definition at line 3 of file Formatting.cpp.

Member Function Documentation

◆ dataFormat()

DataFormat Formatting::dataFormat ( ) const

dataFormat Gets the current data form

Returns
the current data format

Definition at line 16 of file Formatting.cpp.

◆ handleNewFormatRecieved()

void Formatting::handleNewFormatRecieved ( const google::protobuf::Message &  message)
protected

Definition at line 27 of file Formatting.cpp.

◆ reset()

void Formatting::reset ( )
virtual

reset Resets the formatting to default

Implements AbstractDriverComponent.

Definition at line 20 of file Formatting.cpp.

◆ setDataFormat()

void Formatting::setDataFormat ( const DataFormat &  dataFormat)

setDataFormat Sets a new data format

Parameters
dataFormatthe new dataformat

Definition at line 9 of file Formatting.cpp.

◆ swapDataFormat()

void Formatting::swapDataFormat ( const DataFormat &  newFormat)
protected

Definition at line 34 of file Formatting.cpp.

Member Data Documentation

◆ m_dataFormat

DataFormat Formatting::m_dataFormat
private

Definition at line 54 of file Formatting.h.

◆ m_dataFormatMutex

std::mutex Formatting::m_dataFormatMutex
private

Definition at line 55 of file Formatting.h.