OpenCPN Partial API docs
FastMessageMap Class Reference

Track fast message fragments eventually forming complete messages. More...

#include <comm_can_util.h>

Classes

class  Entry
 

Public Member Functions

Entry operator[] (int i) const
 
Entryoperator[] (int i)
 Getter.
 
int FindMatchingEntry (const CanHeader header, const unsigned char sid)
 Setter. More...
 
int AddNewEntry (void)
 Allocate a new, fresh entry and return index to it.
 
bool InsertEntry (const CanHeader header, const unsigned char *data, int index)
 Insert a new entry, first part of a multipart message.
 
bool AppendEntry (const CanHeader hdr, const unsigned char *data, int index)
 Append fragment to existing multipart message.
 
void Remove (int pos)
 Remove entry at pos.
 

Public Attributes

std::vector< Entryentries
 

Detailed Description

Track fast message fragments eventually forming complete messages.

Definition at line 80 of file comm_can_util.h.

Member Function Documentation

◆ FindMatchingEntry()

int FastMessageMap::FindMatchingEntry ( const CanHeader  header,
const unsigned char  sid 
)

Setter.

Return index to entry matching header and sid or -1 if not found.

Definition at line 122 of file comm_can_util.cpp.


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