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 57 of file comm_buffers.h.

Constructor & Destructor Documentation

◆ LineBuffer() [1/2]

LineBuffer::LineBuffer ( )
inline

Definition at line 68 of file comm_buffers.h.

◆ LineBuffer() [2/2]

LineBuffer::LineBuffer ( )
inline

Definition at line 146 of file GribOverlayFactory.h.

◆ ~LineBuffer()

LineBuffer::~LineBuffer ( )
inline

Definition at line 150 of file GribOverlayFactory.h.

Member Function Documentation

◆ Finalize()

void LineBuffer::Finalize ( )

Definition at line 178 of file GribOverlayFactory.cpp.

◆ GetLine()

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

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

Definition at line 61 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 59 of file comm_buffers.cpp.

◆ pushGrandeBarbule()

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

Definition at line 167 of file GribOverlayFactory.cpp.

◆ pushLine()

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

Definition at line 155 of file GribOverlayFactory.cpp.

◆ pushPetiteBarbule()

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

Definition at line 162 of file GribOverlayFactory.cpp.

◆ pushTriangle()

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

Definition at line 172 of file GribOverlayFactory.cpp.

◆ Put()

void LineBuffer::Put ( uint8_t  ch)

Add a single character.

Definition at line 44 of file comm_buffers.cpp.

Member Data Documentation

◆ count

int LineBuffer::count

Definition at line 158 of file GribOverlayFactory.h.

◆ lines

float* LineBuffer::lines

Definition at line 159 of file GribOverlayFactory.h.


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