Public Member Functions | Protected Attributes | List of all members
NMEASentence Class Reference

Struct to split an NMEA sentence into its ID and its body, the latter tokenized into a vector of strings. More...

#include <nmea_sentence.hpp>

Public Member Functions

std::vector< std::string > get_body () const
 
 NMEASentence (std::string id, std::vector< std::string > body)
 

Protected Attributes

std::vector< std::string > body_
 
std::string id_
 

Detailed Description

Struct to split an NMEA sentence into its ID and its body, the latter tokenized into a vector of strings.

By ID, we mean either a standardized ID, e.g. "$GPGGA", or proprietary ID such as "$PSSN,HRP". The STL Container Vector can be used to dynamically allocate arrays (C++ feature). Also note that the ID of !all! (not just those defined by Septentrio) proprietary NMEA messages starts with "$P". The body_ member variable shall exclude the NMEA checksum (also hinted at in files that implement the parsing).

Definition at line 56 of file nmea_sentence.hpp.

Constructor & Destructor Documentation

◆ NMEASentence()

NMEASentence::NMEASentence ( std::string  id,
std::vector< std::string >  body 
)
inline

Definition at line 59 of file nmea_sentence.hpp.

Member Function Documentation

◆ get_body()

std::vector<std::string> NMEASentence::get_body ( ) const
inline

Definition at line 63 of file nmea_sentence.hpp.

Member Data Documentation

◆ body_

std::vector<std::string> NMEASentence::body_
protected

Definition at line 67 of file nmea_sentence.hpp.

◆ id_

std::string NMEASentence::id_
protected

Definition at line 66 of file nmea_sentence.hpp.


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


septentrio_gnss_driver
Author(s): Tibor Dome
autogenerated on Thu Jun 23 2022 02:11:38