MRPT  1.9.9
mrpt::obs::gnss::Message_NMEA_GGA Struct Referenceabstract

Detailed Description

NMEA datum: GGA.

See also
mrpt::obs::CObservationGPS

Definition at line 19 of file gnss_messages_ascii_nmea.h.

#include <mrpt/obs/gnss_messages_ascii_nmea.h>

Inheritance diagram for mrpt::obs::gnss::Message_NMEA_GGA:

Classes

struct  content_t
 

Public Types

enum  { msg_type = NMEA_GGA }
 Static msg type (member expected by templates) More...
 

Public Member Functions

 Message_NMEA_GGA ()
 
void dumpToStream (std::ostream &out) const override
 Dumps the contents of the observation in a human-readable form to a given output stream. More...
 
template<class TGEODETICCOORDS >
TGEODETICCOORDS getOrthoAsStruct () const
 Return the geodetic coords as a mrpt::topography::TGeodeticCoords structure (requires linking against mrpt-topography) Call as: getAsStruct<TGeodeticCoords>();. More...
 
template<class TGEODETICCOORDS >
TGEODETICCOORDS getCorrectedOrthoAsStruct () const
 Return the corrected geodetic coords as a mrpt::topography::TGeodeticCoords structure (requires linking against mrpt-topography) Call as: getAsStruct<TGeodeticCoords>();. More...
 
template<class TGEODETICCOORDS >
TGEODETICCOORDS getAsStruct () const
 Return the geodetic coords as a mrpt::topography::TGeodeticCoords structure (requires linking against mrpt-topography) Call as: getAsStruct<TGeodeticCoords>();. 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::stringgetMessageTypeAsString () const
 Returns "NMEA_GGA", etc. More...
 

Static Public Member Functions

static gnss_messagereadAndBuildFromStream (mrpt::serialization::CArchive &in)
 Load from binary stream and creates object detecting its type (class factory). More...
 
static gnss_messageFactory (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...
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Static msg type (member expected by templates)

Enumerator
msg_type 

Definition at line 23 of file gnss_messages_ascii_nmea.h.

Constructor & Destructor Documentation

◆ Message_NMEA_GGA()

mrpt::obs::gnss::Message_NMEA_GGA::Message_NMEA_GGA ( )
inline

Definition at line 27 of file gnss_messages_ascii_nmea.h.

Member Function Documentation

◆ dumpToConsole()

void mrpt::obs::gnss::gnss_message::dumpToConsole ( std::ostream &  o) const
inherited

Dumps the contents of the observation in a human-readable form to an std::ostream (set to std::cout to print to console)

◆ dumpToStream()

◆ Factory()

gnss_message * gnss_message::Factory ( const gnss_message_type_t  msg_id)
staticinherited

Creates message.

Returns
nullptr on unknown msg type

Definition at line 47 of file gnss_messages_common.cpp.

References LIST_ALL_MSGS.

◆ FactoryKnowsMsgType()

bool gnss_message::FactoryKnowsMsgType ( const gnss_message_type_t  msg_id)
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.

◆ getAllFieldDescriptions()

bool Message_NMEA_GGA::getAllFieldDescriptions ( std::ostream &  o) const
overridevirtual

Dumps a header for getAllFieldValues()

Returns
false if not implemented for this message type

Reimplemented from mrpt::obs::gnss::gnss_message.

Definition at line 64 of file gnss_messages_ascii_nmea.cpp.

◆ getAllFieldValues()

bool Message_NMEA_GGA::getAllFieldValues ( std::ostream &  o) const
overridevirtual

◆ getAsStruct()

template<class TGEODETICCOORDS >
TGEODETICCOORDS mrpt::obs::gnss::Message_NMEA_GGA::getAsStruct ( ) const
inline

Return the geodetic coords as a mrpt::topography::TGeodeticCoords structure (requires linking against mrpt-topography) Call as: getAsStruct<TGeodeticCoords>();.

Definition at line 92 of file gnss_messages_ascii_nmea.h.

References mrpt::obs::gnss::Message_NMEA_GGA::content_t::altitude_meters, fields, mrpt::obs::gnss::Message_NMEA_GGA::content_t::latitude_degrees, and mrpt::obs::gnss::Message_NMEA_GGA::content_t::longitude_degrees.

Referenced by mrpt::topography::path_from_rtk_gps().

Here is the caller graph for this function:

◆ getCorrectedOrthoAsStruct()

template<class TGEODETICCOORDS >
TGEODETICCOORDS mrpt::obs::gnss::Message_NMEA_GGA::getCorrectedOrthoAsStruct ( ) const
inline

◆ getMessageTypeAsString()

const std::string & gnss_message::getMessageTypeAsString ( ) const
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().

Here is the caller graph for this function:

◆ getOrthoAsStruct()

template<class TGEODETICCOORDS >
TGEODETICCOORDS mrpt::obs::gnss::Message_NMEA_GGA::getOrthoAsStruct ( ) const
inline

◆ internal_readFromStream()

virtual void mrpt::obs::gnss::gnss_message::internal_readFromStream ( mrpt::serialization::CArchive in)
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().

Here is the caller graph for this function:

◆ internal_writeToStream()

virtual void mrpt::obs::gnss::gnss_message::internal_writeToStream ( mrpt::serialization::CArchive out) const
protectedpure virtualinherited

◆ isOfClass()

template<class MSG_CLASS >
bool mrpt::obs::gnss::gnss_message::isOfClass ( ) const
inlineinherited

Definition at line 40 of file gnss_messages_common.h.

References mrpt::obs::gnss::gnss_message::isOfType().

Here is the call graph for this function:

◆ isOfType()

bool mrpt::obs::gnss::gnss_message::isOfType ( const gnss_message_type_t  type_id) const
inherited

Referenced by mrpt::obs::gnss::gnss_message::isOfClass().

Here is the caller graph for this function:

◆ readAndBuildFromStream()

gnss_message * gnss_message::readAndBuildFromStream ( mrpt::serialization::CArchive in)
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::operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readFromStream()

void gnss_message::readFromStream ( mrpt::serialization::CArchive in)
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_.

◆ writeToStream()

void gnss_message::writeToStream ( mrpt::serialization::CArchive out) const
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=().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ fields

◆ message_type

gnss_message_type_t mrpt::obs::gnss::gnss_message::message_type
inherited



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c26d46ba6 Thu Jul 18 13:03:42 2019 +0200 at jue jul 18 13:10:17 CEST 2019