QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
NTRIPHttpDecoder Class Reference

Private transport parser; buffers framing, never correction payloads. More...

#include <NTRIPHttpCodec.h>

Classes

struct  Status
struct  Result

Public Member Functions

 NTRIPHttpDecoder (NTRIPHttpPurpose purpose=NTRIPHttpPurpose::Corrections)
void reset ()
Result feed (QByteArrayView bytes, const QDateTime &utcNow)
Result finish ()
bool awaitingErrorBody () const

Static Public Member Functions

static Status parseStatusLine (QByteArrayView line)

Static Public Attributes

static constexpr qsizetype MAX_HEADER_BYTES = 32768
static constexpr qsizetype MAX_LINE_BYTES = 8192
static constexpr quint64 MAX_CHUNK_BYTES = 16 * 1024 * 1024
static constexpr qsizetype MAX_ERROR_BODY_BYTES = 500
static constexpr qsizetype MAX_ERROR_PREVIEW_CHARS = 200

Detailed Description

Private transport parser; buffers framing, never correction payloads.

Definition at line 32 of file NTRIPHttpCodec.h.

Constructor & Destructor Documentation

◆ NTRIPHttpDecoder()

NTRIPHttpDecoder::NTRIPHttpDecoder ( NTRIPHttpPurpose purpose = NTRIPHttpPurpose::Corrections)
inlineexplicit

Definition at line 38 of file NTRIPHttpCodec.h.

References Corrections.

Referenced by reset().

Member Function Documentation

◆ awaitingErrorBody()

bool NTRIPHttpDecoder::awaitingErrorBody ( ) const
inline

Definition at line 67 of file NTRIPHttpCodec.h.

◆ feed()

NTRIPHttpDecoder::Result NTRIPHttpDecoder::feed ( QByteArrayView bytes,
const QDateTime & utcNow )

◆ finish()

NTRIPHttpDecoder::Result NTRIPHttpDecoder::finish ( )

Definition at line 382 of file NTRIPHttpCodec.cc.

References NTRIPHttpDecoder::Result::complete.

◆ parseStatusLine()

NTRIPHttpDecoder::Status NTRIPHttpDecoder::parseStatusLine ( QByteArrayView line)
static

Definition at line 94 of file NTRIPHttpCodec.cc.

◆ reset()

void NTRIPHttpDecoder::reset ( )

Definition at line 89 of file NTRIPHttpCodec.cc.

References NTRIPHttpDecoder().

Member Data Documentation

◆ MAX_CHUNK_BYTES

quint64 NTRIPHttpDecoder::MAX_CHUNK_BYTES = 16 * 1024 * 1024
staticconstexpr

Definition at line 44 of file NTRIPHttpCodec.h.

◆ MAX_ERROR_BODY_BYTES

qsizetype NTRIPHttpDecoder::MAX_ERROR_BODY_BYTES = 500
staticconstexpr

Definition at line 45 of file NTRIPHttpCodec.h.

Referenced by feed().

◆ MAX_ERROR_PREVIEW_CHARS

qsizetype NTRIPHttpDecoder::MAX_ERROR_PREVIEW_CHARS = 200
staticconstexpr

Definition at line 46 of file NTRIPHttpCodec.h.

◆ MAX_HEADER_BYTES

qsizetype NTRIPHttpDecoder::MAX_HEADER_BYTES = 32768
staticconstexpr

Definition at line 42 of file NTRIPHttpCodec.h.

Referenced by feed().

◆ MAX_LINE_BYTES

qsizetype NTRIPHttpDecoder::MAX_LINE_BYTES = 8192
staticconstexpr

Definition at line 43 of file NTRIPHttpCodec.h.

Referenced by feed().


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