SyncbyteFormatDetector Class Reference

Format detection implementation that looks for the periodic repetition of a byte. More...

#include <syncbyteformatdetector.h>

Inherits FormatDetector.

List of all members.

Public Member Functions

 SyncbyteFormatDetector (int numberOfPeriods)
 Construct a syncbyte detector and specifiy the number of periods (or packets) that needs to be checked to sucessfully detect a format.
void addSyncbyte (const std::string &format, uint8_t syncbyte, int packetlength)
 Map a syncbyte to a format.

Protected Member Functions

virtual std::string doGetFormat (File &file) const override

Detailed Description

Format detection implementation that looks for the periodic repetition of a byte.

This is typically used to detect a format using packets of fixed length each beginning with a fixed byte called syncbyte.


Constructor & Destructor Documentation

Construct a syncbyte detector and specifiy the number of periods (or packets) that needs to be checked to sucessfully detect a format.


Member Function Documentation

void SyncbyteFormatDetector::addSyncbyte ( const std::string &  format,
uint8_t  syncbyte,
int  packetlength 
)

Map a syncbyte to a format.

virtual std::string SyncbyteFormatDetector::doGetFormat ( File file) const [override, protected, virtual]

Implements FormatDetector.


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