MRPT
1.9.9
|
UTC (Coordinated Universal Time) time-stamp structure for GPS messages.
Definition at line 170 of file gnss_messages_common.h.
#include <mrpt/obs/gnss_messages_common.h>
Public Member Functions | |
UTC_time () | |
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. More... | |
bool | operator== (const UTC_time &o) const |
bool | operator!= (const UTC_time &o) const |
void | writeToStream (mrpt::serialization::CArchive &out) const |
Save to binary stream. More... | |
void | readFromStream (mrpt::serialization::CArchive &in) |
Save to binary stream. More... | |
Public Attributes | |
uint8_t | hour |
uint8_t | minute |
double | sec |
UTC_time::UTC_time | ( | ) |
Definition at line 174 of file gnss_messages_common.cpp.
mrpt::system::TTimeStamp UTC_time::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.
Definition at line 186 of file gnss_messages_common.cpp.
References mrpt::system::buildTimestampFromParts(), mrpt::system::TTimeParts::hour, hour, mrpt::system::TTimeParts::minute, minute, sec, mrpt::system::TTimeParts::second, and mrpt::system::timestampToParts().
Referenced by mrpt::obs::gnss::Message_NMEA_ZDA::getDateTimeAsTimestamp(), mrpt::hwdrivers::CVelodyneScanner::getNextObservation(), and mrpt::hwdrivers::CGPSInterface::parse_NMEA().
|
inline |
Definition at line 185 of file gnss_messages_common.h.
|
inline |
Definition at line 181 of file gnss_messages_common.h.
void UTC_time::readFromStream | ( | mrpt::serialization::CArchive & | in | ) |
Save to binary stream.
Launches an exception upon error
Definition at line 179 of file gnss_messages_common.cpp.
void UTC_time::writeToStream | ( | mrpt::serialization::CArchive & | out | ) | const |
Save to binary stream.
Launches an exception upon error
Definition at line 175 of file gnss_messages_common.cpp.
uint8_t mrpt::obs::gnss::UTC_time::hour |
Definition at line 172 of file gnss_messages_common.h.
Referenced by mrpt::hwdrivers::CIMUXSens_MT4::doProcess(), mrpt::obs::gnss::Message_NMEA_GGA::dumpToStream(), mrpt::obs::gnss::Message_NMEA_GLL::dumpToStream(), mrpt::obs::gnss::Message_NMEA_RMC::dumpToStream(), mrpt::obs::gnss::Message_NMEA_ZDA::dumpToStream(), mrpt::obs::gnss::Message_NMEA_GGA::getAllFieldValues(), mrpt::obs::gnss::Message_NMEA_GLL::getAllFieldValues(), mrpt::obs::gnss::Message_NMEA_RMC::getAllFieldValues(), mrpt::obs::gnss::Message_NMEA_ZDA::getAllFieldValues(), getAsTimestamp(), operator!=(), operator==(), mrpt::hwdrivers::CGPSInterface::parse_NMEA(), readFromStream(), mrpt::obs::CObservationGPS::serializeFrom(), TEST(), and writeToStream().
uint8_t mrpt::obs::gnss::UTC_time::minute |
Definition at line 173 of file gnss_messages_common.h.
Referenced by mrpt::hwdrivers::CIMUXSens_MT4::doProcess(), mrpt::obs::gnss::Message_NMEA_GGA::dumpToStream(), mrpt::obs::gnss::Message_NMEA_GLL::dumpToStream(), mrpt::obs::gnss::Message_NMEA_RMC::dumpToStream(), mrpt::obs::gnss::Message_NMEA_ZDA::dumpToStream(), mrpt::obs::gnss::Message_NMEA_GGA::getAllFieldValues(), mrpt::obs::gnss::Message_NMEA_GLL::getAllFieldValues(), mrpt::obs::gnss::Message_NMEA_RMC::getAllFieldValues(), mrpt::obs::gnss::Message_NMEA_ZDA::getAllFieldValues(), getAsTimestamp(), operator!=(), operator==(), mrpt::hwdrivers::CGPSInterface::parse_NMEA(), readFromStream(), mrpt::obs::CObservationGPS::serializeFrom(), TEST(), and writeToStream().
double mrpt::obs::gnss::UTC_time::sec |
Definition at line 174 of file gnss_messages_common.h.
Referenced by mrpt::hwdrivers::CIMUXSens_MT4::doProcess(), mrpt::obs::gnss::Message_NMEA_GGA::dumpToStream(), mrpt::obs::gnss::Message_NMEA_GLL::dumpToStream(), mrpt::obs::gnss::Message_NMEA_RMC::dumpToStream(), mrpt::obs::gnss::Message_NMEA_ZDA::dumpToStream(), mrpt::obs::gnss::Message_NMEA_GGA::getAllFieldValues(), mrpt::obs::gnss::Message_NMEA_GLL::getAllFieldValues(), mrpt::obs::gnss::Message_NMEA_RMC::getAllFieldValues(), mrpt::obs::gnss::Message_NMEA_ZDA::getAllFieldValues(), getAsTimestamp(), operator!=(), operator==(), mrpt::hwdrivers::CGPSInterface::parse_NMEA(), readFromStream(), mrpt::obs::CObservationGPS::serializeFrom(), TEST(), and writeToStream().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020 |