struct mrpt::obs::gnss::UTC_time

UTC (Coordinated Universal Time) time-stamp structure for GPS messages.

See also:

mrpt::obs::CObservationGPS

#include <mrpt/obs/gnss_messages_common.h>

struct UTC_time
{
    //
fields

    uint8_t hour {0};
    uint8_t minute {0};
    double sec {0};

    // construction

    UTC_time();

    //
methods

    mrpt::system::TTimeStamp getAsTimestamp(const mrpt::system::TTimeStamp& date) const;
    bool operator == (const UTC_time& o) const;
    bool operator != (const UTC_time& o) const;
    void writeToStream(mrpt::serialization::CArchive& out) const;
    void readFromStream(mrpt::serialization::CArchive& in);
};

Methods

mrpt::system::TTimeStamp getAsTimestamp(const mrpt::system::TTimeStamp& date) const

Build an MRPT timestamp with the hour/minute/sec of this structure and the date from the given timestamp.

void writeToStream(mrpt::serialization::CArchive& out) const

Save to binary stream.

Launches an exception upon error

void readFromStream(mrpt::serialization::CArchive& in)

Save to binary stream.

Launches an exception upon error