NMEA datum: VTG.
Definition at line 181 of file gnss_messages_ascii_nmea.h.
#include <mrpt/obs/gnss_messages_ascii_nmea.h>
Classes | |
struct | content_t |
Public Types | |
enum | { msg_type = NMEA_VTG } |
Static msg type (member expected by templates) More... | |
Public Member Functions | |
Message_NMEA_VTG () | |
void | dumpToStream (std::ostream &out) const override |
Dumps the contents of the observation in a human-readable form to a given output stream. More... | |
bool | getAllFieldDescriptions (std::ostream &o) const override |
Dumps a header for getAllFieldValues() More... | |
bool | getAllFieldValues (std::ostream &o) const override |
Dumps a line with the sequence of all field values (without a line feed at the end). More... | |
void | writeToStream (mrpt::serialization::CArchive &out) const |
Save to binary stream. More... | |
void | readFromStream (mrpt::serialization::CArchive &in) |
Load from binary stream into this existing object. More... | |
bool | isOfType (const gnss_message_type_t type_id) const |
template<class MSG_CLASS > | |
bool | isOfClass () const |
void | dumpToConsole (std::ostream &o) const |
Dumps the contents of the observation in a human-readable form to an std::ostream (set to std::cout to print to console) More... | |
const std::string & | getMessageTypeAsString () const |
Returns "NMEA_GGA", etc. More... | |
Static Public Member Functions | |
static gnss_message * | readAndBuildFromStream (mrpt::serialization::CArchive &in) |
Load from binary stream and creates object detecting its type (class factory). More... | |
static gnss_message * | Factory (const gnss_message_type_t msg_id) |
Creates message. More... | |
static bool | FactoryKnowsMsgType (const gnss_message_type_t msg_id) |
Returns true if Factory() has a registered constructor for this msg type. More... | |
Public Attributes | |
content_t | fields |
Message content, accesible by individual fields. More... | |
gnss_message_type_t | message_type |
Type of GNSS message. More... | |
Protected Member Functions | |
virtual void | internal_writeToStream (mrpt::serialization::CArchive &out) const =0 |
Save to binary stream. More... | |
virtual void | internal_readFromStream (mrpt::serialization::CArchive &in)=0 |
Save to binary stream. More... | |
anonymous enum |
Static msg type (member expected by templates)
Enumerator | |
---|---|
msg_type |
Definition at line 185 of file gnss_messages_ascii_nmea.h.
|
inline |
Definition at line 189 of file gnss_messages_ascii_nmea.h.
|
inherited |
Dumps the contents of the observation in a human-readable form to an std::ostream (set to std::cout to print to console)
|
overridevirtual |
Dumps the contents of the observation in a human-readable form to a given output stream.
Implements mrpt::obs::gnss::gnss_message.
Definition at line 134 of file gnss_messages_ascii_nmea.cpp.
References fields, mrpt::format(), mrpt::obs::gnss::Message_NMEA_VTG::content_t::ground_speed_kmh, mrpt::obs::gnss::Message_NMEA_VTG::content_t::ground_speed_knots, mrpt::obs::gnss::Message_NMEA_VTG::content_t::magnetic_track, and mrpt::obs::gnss::Message_NMEA_VTG::content_t::true_track.
|
staticinherited |
Creates message.
Definition at line 47 of file gnss_messages_common.cpp.
References LIST_ALL_MSGS.
|
staticinherited |
Returns true if Factory() has a registered constructor for this msg type.
Definition at line 60 of file gnss_messages_common.cpp.
References LIST_ALL_MSGS.
|
overridevirtual |
Dumps a header for getAllFieldValues()
Reimplemented from mrpt::obs::gnss::gnss_message.
Definition at line 145 of file gnss_messages_ascii_nmea.cpp.
|
overridevirtual |
Dumps a line with the sequence of all field values (without a line feed at the end).
Reimplemented from mrpt::obs::gnss::gnss_message.
Definition at line 150 of file gnss_messages_ascii_nmea.cpp.
References fields, mrpt::format(), mrpt::obs::gnss::Message_NMEA_VTG::content_t::ground_speed_kmh, mrpt::obs::gnss::Message_NMEA_VTG::content_t::ground_speed_knots, mrpt::obs::gnss::Message_NMEA_VTG::content_t::magnetic_track, and mrpt::obs::gnss::Message_NMEA_VTG::content_t::true_track.
|
inherited |
Returns "NMEA_GGA", etc.
Definition at line 74 of file gnss_messages_common.cpp.
References LIST_ALL_MSGS.
Referenced by mrpt::hwdrivers::CGPSInterface::implement_parser_NOVATEL_OEM6().
|
protectedpure virtualinherited |
Save to binary stream.
Launches an exception upon error
Implemented in mrpt::obs::gnss::Message_NV_OEM6_VERSION, mrpt::obs::gnss::Message_NV_OEM6_RANGECMP, mrpt::obs::gnss::Message_NV_OEM6_GENERIC_SHORT_FRAME, mrpt::obs::gnss::Message_NV_OEM6_GENERIC_FRAME, mrpt::obs::gnss::Message_TOPCON_SATS, and mrpt::obs::gnss::Message_TOPCON_PZS.
Referenced by mrpt::obs::gnss::gnss_message::readAndBuildFromStream().
|
protectedpure virtualinherited |
Save to binary stream.
Launches an exception upon error
Implemented in mrpt::obs::gnss::Message_NV_OEM6_VERSION, mrpt::obs::gnss::Message_NV_OEM6_RANGECMP, mrpt::obs::gnss::Message_NV_OEM6_GENERIC_SHORT_FRAME, mrpt::obs::gnss::Message_NV_OEM6_GENERIC_FRAME, mrpt::obs::gnss::Message_TOPCON_SATS, and mrpt::obs::gnss::Message_TOPCON_PZS.
|
inlineinherited |
Definition at line 40 of file gnss_messages_common.h.
References mrpt::obs::gnss::gnss_message::isOfType().
|
inherited |
Referenced by mrpt::obs::gnss::gnss_message::isOfClass().
|
staticinherited |
Load from binary stream and creates object detecting its type (class factory).
Launches an exception upon error
Definition at line 107 of file gnss_messages_common.cpp.
References mrpt::obs::gnss::gnss_message::internal_readFromStream(), and THROW_EXCEPTION_FMT.
Referenced by mrpt::obs::gnss::gnss_message_ptr::gnss_message_ptr(), and mrpt::obs::gnss::gnss_message_ptr::operator=().
|
inherited |
Load from binary stream into this existing object.
Launches an exception upon error.
Definition at line 97 of file gnss_messages_common.cpp.
References ASSERT_EQUAL_.
|
inherited |
Save to binary stream.
Launches an exception upon error
Definition at line 90 of file gnss_messages_common.cpp.
References mrpt::serialization::CArchive::WriteAs().
Referenced by mrpt::obs::gnss::gnss_message_ptr::gnss_message_ptr(), and mrpt::obs::gnss::gnss_message_ptr::operator=().
content_t mrpt::obs::gnss::Message_NMEA_VTG::fields |
Message content, accesible by individual fields.
Definition at line 198 of file gnss_messages_ascii_nmea.h.
Referenced by dumpToStream(), getAllFieldValues(), mrpt::hwdrivers::CGPSInterface::parse_NMEA(), and TEST().
|
inherited |
Type of GNSS message.
Definition at line 29 of file gnss_messages_common.h.
Referenced by mrpt::hwdrivers::CGPSInterface::implement_parser_NOVATEL_OEM6(), and mrpt::obs::CObservationGPS::serializeFrom().
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST |