Main MRPT website > C++ reference for MRPT 1.5.7
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 109 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::utils::CStream &out) const
 Save to binary stream. Launches an exception upon error. More...
 
void readFromStream (mrpt::utils::CStream &in)
 Save to binary stream. Launches an exception upon error. More...
 

Public Attributes

uint8_t hour
 
uint8_t minute
 
double sec
 

Constructor & Destructor Documentation

◆ UTC_time()

UTC_time::UTC_time ( )

Definition at line 157 of file gnss_messages_common.cpp.

Member Function Documentation

◆ getAsTimestamp()

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

◆ operator!=()

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

Definition at line 118 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 117 of file gnss_messages_common.h.

References hour, minute, and sec.

◆ readFromStream()

void UTC_time::readFromStream ( mrpt::utils::CStream in)

Save to binary stream. Launches an exception upon error.

Definition at line 164 of file gnss_messages_common.cpp.

References hour, minute, and sec.

◆ writeToStream()

void UTC_time::writeToStream ( mrpt::utils::CStream out) const

Save to binary stream. Launches an exception upon error.

Definition at line 161 of file gnss_messages_common.cpp.

References hour, minute, and sec.

Member Data Documentation

◆ hour

uint8_t mrpt::obs::gnss::UTC_time::hour

◆ minute

uint8_t mrpt::obs::gnss::UTC_time::minute

◆ sec

double mrpt::obs::gnss::UTC_time::sec



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019