Goby3  3.0.1
2021.08.17
goby::util::ais::Decoder Class Reference

#include <goby/util/ais/decode.h>

Public Types

enum  ParsedType { ParsedType::NOT_SUPPORTED, ParsedType::POSITION, ParsedType::VOYAGE }
 

Public Member Functions

 Decoder ()
 
 Decoder (const NMEASentence &nmea)
 
 Decoder (const std::vector< NMEASentence > &nmeas)
 
bool push (const NMEASentence &nmea)
 
bool complete ()
 
int message_id ()
 
ParsedType parsed_type ()
 
goby::util::ais::protobuf::Voyage as_voyage ()
 
goby::util::ais::protobuf::Position as_position ()
 
libais::AisMsg & as_libais_msg ()
 

Detailed Description

Definition at line 60 of file decode.h.

Member Enumeration Documentation

◆ ParsedType

Enumerator
NOT_SUPPORTED 
POSITION 
VOYAGE 

Definition at line 80 of file decode.h.

Constructor & Destructor Documentation

◆ Decoder() [1/3]

goby::util::ais::Decoder::Decoder ( )
inline

Definition at line 63 of file decode.h.

◆ Decoder() [2/3]

goby::util::ais::Decoder::Decoder ( const NMEASentence nmea)
inline

Definition at line 64 of file decode.h.

◆ Decoder() [3/3]

goby::util::ais::Decoder::Decoder ( const std::vector< NMEASentence > &  nmeas)

Member Function Documentation

◆ as_libais_msg()

libais::AisMsg& goby::util::ais::Decoder::as_libais_msg ( )
inline

Definition at line 105 of file decode.h.

◆ as_position()

goby::util::ais::protobuf::Position goby::util::ais::Decoder::as_position ( )

◆ as_voyage()

goby::util::ais::protobuf::Voyage goby::util::ais::Decoder::as_voyage ( )

◆ complete()

bool goby::util::ais::Decoder::complete ( )
inline

Definition at line 70 of file decode.h.

◆ message_id()

int goby::util::ais::Decoder::message_id ( )
inline

Definition at line 72 of file decode.h.

◆ parsed_type()

ParsedType goby::util::ais::Decoder::parsed_type ( )
inline

Definition at line 87 of file decode.h.

◆ push()

bool goby::util::ais::Decoder::push ( const NMEASentence nmea)

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