Goby3  3.1.4
2024.02.22
goby::middleware::SerializerParserHelper< DataType, MarshallingScheme::MAVLINK > Struct Template Reference

Specialization for known compile-time Mavlink message without metadata, e.g. DataType == HEARTBEAT. More...

#include <goby/middleware/marshalling/mavlink.h>

Static Public Member Functions

static std::vector< charserialize (const DataType &packet, int sysid=1, int compid=1)
 
static std::string type_name ()
 
static std::string type_name (const DataType &)
 
template<typename CharIterator >
static std::shared_ptr< DataType > parse (CharIterator bytes_begin, CharIterator bytes_end, CharIterator &actual_end, const std::string &=type_name())
 

Detailed Description

template<typename DataType>
struct goby::middleware::SerializerParserHelper< DataType, MarshallingScheme::MAVLINK >

Specialization for known compile-time Mavlink message without metadata, e.g. DataType == HEARTBEAT.

Definition at line 218 of file mavlink.h.

Member Function Documentation

◆ parse()

template<typename DataType >
template<typename CharIterator >
static std::shared_ptr<DataType> goby::middleware::SerializerParserHelper< DataType, MarshallingScheme::MAVLINK >::parse ( CharIterator  bytes_begin,
CharIterator  bytes_end,
CharIterator &  actual_end,
const std::string &  = type_name() 
)
inlinestatic

Definition at line 234 of file mavlink.h.

◆ serialize()

template<typename DataType >
static std::vector<char> goby::middleware::SerializerParserHelper< DataType, MarshallingScheme::MAVLINK >::serialize ( const DataType &  packet,
int  sysid = 1,
int  compid = 1 
)
inlinestatic

Definition at line 220 of file mavlink.h.

◆ type_name() [1/2]

template<typename DataType >
static std::string goby::middleware::SerializerParserHelper< DataType, MarshallingScheme::MAVLINK >::type_name ( )
inlinestatic

Definition at line 226 of file mavlink.h.

◆ type_name() [2/2]

template<typename DataType >
static std::string goby::middleware::SerializerParserHelper< DataType, MarshallingScheme::MAVLINK >::type_name ( const DataType &  )
inlinestatic

Definition at line 231 of file mavlink.h.


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