OpenCPN Partial API docs
Loading...
Searching...
No Matches
LineBuffer Class Reference

Assembles input characters to lines. More...

#include <comm_buffers.h>

Public Member Functions

void Put (uint8_t ch)
 Add a single character.
 
bool HasLine () const
 Return true if a line is available to be returned by GetLine().
 
std::vector< uint8_t > GetLine ()
 Retrieve a line from buffer, return empty line if none available.
 
void pushLine (float x0, float y0, float x1, float y1)
 
void pushPetiteBarbule (int b, int l)
 
void pushGrandeBarbule (int b, int l)
 
void pushTriangle (int b, int l)
 
void Finalize ()
 

Public Attributes

int count
 
float * lines
 

Detailed Description

Assembles input characters to lines.

Definition at line 63 of file comm_buffers.h.

Constructor & Destructor Documentation

◆ LineBuffer() [1/2]

LineBuffer::LineBuffer ( )
inline

Definition at line 74 of file comm_buffers.h.

◆ LineBuffer() [2/2]

LineBuffer::LineBuffer ( )
inline

Definition at line 145 of file grib_overlay_factory.h.

◆ ~LineBuffer()

LineBuffer::~LineBuffer ( )
inline

Definition at line 149 of file grib_overlay_factory.h.

Member Function Documentation

◆ Finalize()

void LineBuffer::Finalize ( )

Definition at line 179 of file grib_overlay_factory.cpp.

◆ GetLine()

std::vector< uint8_t > LineBuffer::GetLine ( )

Retrieve a line from buffer, return empty line if none available.

Definition at line 60 of file comm_buffers.cpp.

◆ HasLine()

bool LineBuffer::HasLine ( ) const

Return true if a line is available to be returned by GetLine().

Definition at line 58 of file comm_buffers.cpp.

◆ pushGrandeBarbule()

void LineBuffer::pushGrandeBarbule ( int  b,
int  l 
)

Definition at line 168 of file grib_overlay_factory.cpp.

◆ pushLine()

void LineBuffer::pushLine ( float  x0,
float  y0,
float  x1,
float  y1 
)

Definition at line 156 of file grib_overlay_factory.cpp.

◆ pushPetiteBarbule()

void LineBuffer::pushPetiteBarbule ( int  b,
int  l 
)

Definition at line 163 of file grib_overlay_factory.cpp.

◆ pushTriangle()

void LineBuffer::pushTriangle ( int  b,
int  l 
)

Definition at line 173 of file grib_overlay_factory.cpp.

◆ Put()

void LineBuffer::Put ( uint8_t  ch)

Add a single character.

Definition at line 43 of file comm_buffers.cpp.

Member Data Documentation

◆ count

int LineBuffer::count

Definition at line 157 of file grib_overlay_factory.h.

◆ lines

float* LineBuffer::lines

Definition at line 158 of file grib_overlay_factory.h.


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