31 #ifndef PARSER_BASE_CLASS_HPP 32 #define PARSER_BASE_CLASS_HPP 108 template <
typename SBFStructT>
129 #endif //PARSER_BASE_CLASS_HPP virtual const std::string getMessageID() const =0
Returns the ASCII message name.
Declares a derived class of the class "std::runtime_error" for throwing error messages when parsing N...
Base class for parsing NMEA messages and SBF blocks.
Declares utility functions used when parsing messages.
virtual ~BaseParser()=default
Default destructor of the class BaseParser.
Struct to split an NMEA sentence into its ID and its body, the latter tokenized into a vector of stri...
Class to declare error message format when parsing, derived from the public class "std::runtime_error...
virtual T parseASCII(const NMEASentence &sentence) noexcept(false)
Converts an NMEA sentence - both standardized and proprietary ones - into a ROS message pointer (e...
Defines a struct NMEASentence, into which NMEA sentences - both standardized and proprietary ones - s...
BaseParser()=default
Default constructor of the class BaseParser.
T parseBinary(const SBFStructT &bin_msg) noexcept(false)
Converts bin_msg into a ROS message pointer (e.g. nmea_msgs::GpggaPtr) and returns it...