Public Member Functions | Static Public Attributes | List of all members
GpgsaParser Class Reference

Derived class for parsing GSA messages. More...

#include <gpgsa.hpp>

Inheritance diagram for GpgsaParser:
Inheritance graph
[legend]

Public Member Functions

const std::string getMessageID () const override
 Returns the ASCII message ID, here "$GPGSA". More...
 
 GpgsaParser ()
 Constructor of the class GpgsaParser. More...
 
rosaic::GpgsaPtr parseASCII (const NMEASentence &sentence) noexcept(false) override
 Parses one GSA message. More...
 
- Public Member Functions inherited from BaseParser< rosaic::GpgsaPtr >
 BaseParser ()=default
 Default constructor of the class BaseParser. More...
 
rosaic::GpgsaPtr parseBinary (const SBFStructT &bin_msg) noexcept(false)
 Converts bin_msg into a ROS message pointer (e.g. nmea_msgs::GpggaPtr) and returns it. More...
 
virtual ~BaseParser ()=default
 Default destructor of the class BaseParser. More...
 

Static Public Attributes

static const std::string MESSAGE_ID = "$GPGSA"
 Declares the string MESSAGE_ID. More...
 

Detailed Description

Derived class for parsing GSA messages.

Date
29/09/20

Definition at line 82 of file gpgsa.hpp.

Constructor & Destructor Documentation

◆ GpgsaParser()

GpgsaParser::GpgsaParser ( )
inline

Constructor of the class GpgsaParser.

Definition at line 89 of file gpgsa.hpp.

Member Function Documentation

◆ getMessageID()

const std::string GpgsaParser::getMessageID ( ) const
overridevirtual

Returns the ASCII message ID, here "$GPGSA".

Returns
The message ID

Implements BaseParser< rosaic::GpgsaPtr >.

Definition at line 41 of file gpgsa.cpp.

◆ parseASCII()

rosaic::GpgsaPtr GpgsaParser::parseASCII ( const NMEASentence sentence)
overridevirtualnoexcept

Parses one GSA message.

Parameters
[in]sentenceThe GSA message to be parsed
Returns
A ROS message pointer of ROS type rosaic::GpgsaPtr

Caution: Due to the occurrence of the throw keyword, this method ParseASCII should be called within a try / catch framework... Note: This method is called from within the read() method of the RxMessage class by including the checksum part in the argument "sentence" here, though the checksum is never parsed: It would be sentence.get_body()[18] if anybody ever needs it.

Reimplemented from BaseParser< rosaic::GpgsaPtr >.

Definition at line 51 of file gpgsa.cpp.

Member Data Documentation

◆ MESSAGE_ID

const std::string GpgsaParser::MESSAGE_ID = "$GPGSA"
static

Declares the string MESSAGE_ID.

Definition at line 107 of file gpgsa.hpp.


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


rosaic
Author(s): Tibor Dome
autogenerated on Wed Oct 14 2020 03:43:50