struct mrpt::obs::gnss::Message_NMEA_GGA

NMEA datum: GGA.

See also:

mrpt::obs::CObservationGPS

#include <mrpt/obs/gnss_messages_ascii_nmea.h>

struct Message_NMEA_GGA: public mrpt::obs::gnss::gnss_message
{
    // enums

    enum
    {
        msg_type = NMEA_GGA,
    };

    // structs

    struct content_t;

    //
fields

    content_t fields;

    //
methods

    virtual void dumpToStream(std::ostream& out) const;

    template <class TGEODETICCOORDS>
    TGEODETICCOORDS getOrthoAsStruct() const;

    template <class TGEODETICCOORDS>
    TGEODETICCOORDS getCorrectedOrthoAsStruct() const;

    template <class TGEODETICCOORDS>
    TGEODETICCOORDS getAsStruct() const;

    bool getAllFieldDescriptions(std::ostream& o) const;
    bool getAllFieldValues(std::ostream& o) const;
};

Inherited Members

public:
    //
fields

    gnss_message_type_t message_type;

    //
methods

    void writeToStream(mrpt::serialization::CArchive& out) const;
    void readFromStream(mrpt::serialization::CArchive& in);
    virtual void dumpToStream(std::ostream& out) const = 0;
    virtual void fixEndianness();
    virtual void dumpToConsole(std::ostream& o) const;
    virtual bool getAllFieldDescriptions(] std::ostream& o) const;
    virtual bool getAllFieldValues(] std::ostream& o) const;
    const std::string& getMessageTypeAsString() const;
    static gnss_message* readAndBuildFromStream(mrpt::serialization::CArchive& in);
    static gnss_message* Factory(const gnss_message_type_t msg_id);
    static bool FactoryKnowsMsgType(const gnss_message_type_t msg_id);

Fields

content_t fields

Message content, accesible by individual fields.

Methods

virtual void dumpToStream(std::ostream& out) const

Dumps the contents of the observation in a human-readable form to a given output stream.

See also:

dumpToConsole()

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>();.

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>();.

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>();.