Go to the documentation of this file.
20 #define LIST_ALL_MSGS \
31 DOFOR(NV_OEM6_GENERIC_FRAME) \
32 DOFOR(NV_OEM6_BESTPOS) \
34 DOFOR(NV_OEM6_GENERIC_SHORT_FRAME) \
35 DOFOR(NV_OEM6_INSPVAS) \
36 DOFOR(NV_OEM6_RANGECMP) \
37 DOFOR(NV_OEM6_RXSTATUS) \
38 DOFOR(NV_OEM6_RAWEPHEM) \
39 DOFOR(NV_OEM6_VERSION) \
40 DOFOR(NV_OEM6_RAWIMUS) \
41 DOFOR(NV_OEM6_MARKPOS) \
42 DOFOR(NV_OEM6_MARKTIME) \
43 DOFOR(NV_OEM6_MARK2TIME) \
49 #define DOFOR(_MSG_ID) \
51 return new Message_##_MSG_ID();
62 #define DOFOR(_MSG_ID) \
74 const std::string& gnss_message::getMessageTypeAsString()
const
76 static bool first_call =
true;
77 static std::map<gnss_message_type_t, std::string> gnss_type2str;
81 #define DOFOR(_MSG_ID) gnss_type2str[_MSG_ID] = #_MSG_ID;
86 return gnss_type2str[this->message_type];
93 this->internal_writeToStream(out);
102 this->internal_readFromStream(
in);
116 "Error deserializing gnss_message: unknown message type '%i'",
117 static_cast<int>(msg_id));
123 gnss_message_ptr::gnss_message_ptr() : ptr(nullptr) {}
uint64_t Seek(int64_t Offset, CStream::TSeekOrigin Origin=sFromBeginning) override
Introduces a pure virtual method for moving to a specified position in the streamed resource.
virtual ~gnss_message_ptr()
Dtor: it frees the pointee memory.
gnss_message_type_t
List of all known GNSS message types.
#define ASSERT_EQUAL_(__A, __B)
Assert comparing two values, reporting their actual values upon failure.
void readFromStream(mrpt::serialization::CArchive &in)
Save to binary stream.
mrpt::system::TTimeStamp buildTimestampFromParts(const mrpt::system::TTimeParts &p)
Builds a timestamp from the parts (Parts are in UTC)
double second
Minute (0-59)
#define THROW_EXCEPTION_FMT(_FORMAT_STRING,...)
The parts of a date/time (it's like the standard 'tm' but with fractions of seconds).
Virtual base class for "archives": classes abstracting I/O streams.
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1,...
A smart pointer to a GNSS message.
void timestampToParts(TTimeStamp t, TTimeParts &p, bool localTime=false)
Gets the individual parts of a date/time (days, hours, minutes, seconds) - UTC time or local 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 timest...
void WriteAs(const TYPE_FROM_ACTUAL &value)
This CStream derived class allow using a memory buffer as a CStream.
CArchiveStreamBase< STREAM > archiveFrom(STREAM &s)
Helper function to create a templatized wrapper CArchive object for a: MRPT's CStream,...
static gnss_message * readAndBuildFromStream(mrpt::serialization::CArchive &in)
Load from binary stream and creates object detecting its type (class factory).
void writeToStream(mrpt::serialization::CArchive &out) const
Save to binary stream.
void set(gnss_message *p)
Replaces the pointee with a new pointer.
virtual void internal_readFromStream(mrpt::serialization::CArchive &in)=0
Save to binary stream.
GNSS (GPS) data structures, mainly for use within mrpt::obs::CObservationGPS.
uint8_t minute
Hour (0-23)
GLsizei const GLchar ** string
Pure virtual base for all message types.
gnss_message_ptr & operator=(const gnss_message_ptr &o)
void writeToStream(mrpt::serialization::CArchive &out) const
Save to binary stream.
This namespace provides a OS-independent interface to many useful functions: filenames manipulation,...
gnss_message_ptr()
Ctor (default: nullptr pointer)
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |