MRPT  2.0.1
List of all members | Public Member Functions | Public Attributes
mrpt::obs::gnss::UTC_time Struct Reference

Detailed Description

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

See also
mrpt::obs::CObservationGPS

Definition at line 189 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 {0}
 
uint8_t minute {0}
 
double sec {0}
 

Constructor & Destructor Documentation

◆ UTC_time()

UTC_time::UTC_time ( )
default

Member Function Documentation

◆ getAsTimestamp()

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

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

◆ operator!=()

bool mrpt::obs::gnss::UTC_time::operator!= ( const UTC_time o) const
inline

Definition at line 204 of file gnss_messages_common.h.

References hour, minute, and sec.

◆ operator==()

bool mrpt::obs::gnss::UTC_time::operator== ( const UTC_time o) const
inline

Definition at line 200 of file gnss_messages_common.h.

References hour, minute, and sec.

◆ readFromStream()

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

Save to binary stream.

Launches an exception upon error

Definition at line 190 of file gnss_messages_common.cpp.

References hour, minute, and sec.

◆ writeToStream()

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

Save to binary stream.

Launches an exception upon error

Definition at line 186 of file gnss_messages_common.cpp.

References hour, minute, out, and sec.

Member Data Documentation

◆ hour

uint8_t mrpt::obs::gnss::UTC_time::hour {0}

◆ minute

uint8_t mrpt::obs::gnss::UTC_time::minute {0}

◆ sec

double mrpt::obs::gnss::UTC_time::sec {0}



Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020