MRPT  2.0.0
List of all members | Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions
mrpt::obs::gnss::Message_NV_OEM6_VERSION Struct Reference

Detailed Description

Novatel frame: NV_OEM6_VERSION.

See also
mrpt::obs::CObservationGPS

Definition at line 462 of file gnss_messages_novatel.h.

#include <mrpt/obs/gnss_messages_novatel.h>

Inheritance diagram for mrpt::obs::gnss::Message_NV_OEM6_VERSION:

Classes

struct  TComponentVersion
 

Public Member Functions

 Message_NV_OEM6_VERSION ()
 
void dumpToStream (std::ostream &out) const override
 Dumps the contents of the observation in a human-readable form to a given output stream. More...
 
void fixEndianness () override
 If we are in a big endian system, reverse all fields >1 byte to fix its representation. More...
 
void writeToStream (mrpt::serialization::CArchive &out) const
 Save to binary stream. More...
 
void readFromStream (mrpt::serialization::CArchive &in)
 Load from binary stream into this existing object. More...
 
bool isOfType (const gnss_message_type_t type_id) const
 
template<class MSG_CLASS >
bool isOfClass () const
 
virtual void dumpToConsole (std::ostream &o) const
 Dumps the contents of the observation in a human-readable form to an std::ostream (set to std::cout to print to console) More...
 
virtual bool getAllFieldDescriptions ([[maybe_unused]] std::ostream &o) const
 Dumps a header for getAllFieldValues() More...
 
virtual bool getAllFieldValues ([[maybe_unused]] std::ostream &o) const
 Dumps a line with the sequence of all field values (without a line feed at the end). More...
 
const std::string & getMessageTypeAsString () const
 Returns "NMEA_GGA", etc. More...
 

Static Public Member Functions

static gnss_messagereadAndBuildFromStream (mrpt::serialization::CArchive &in)
 Load from binary stream and creates object detecting its type (class factory). More...
 
static gnss_messageFactory (const gnss_message_type_t msg_id)
 Creates message. More...
 
static bool FactoryKnowsMsgType (const gnss_message_type_t msg_id)
 Returns true if Factory() has a registered constructor for this msg type. More...
 

Public Attributes

nv_oem6_header_t header
 Frame header. More...
 
uint32_t num_comps {0}
 
std::vector< TComponentVersioncomponents
 
uint32_t crc
 
gnss_message_type_t message_type
 Type of GNSS message. More...
 

Protected Member Functions

void internal_writeToStream (mrpt::serialization::CArchive &out) const override
 Save to binary stream. More...
 
void internal_readFromStream (mrpt::serialization::CArchive &in) override
 Save to binary stream. More...
 

Constructor & Destructor Documentation

◆ Message_NV_OEM6_VERSION()

mrpt::obs::gnss::Message_NV_OEM6_VERSION::Message_NV_OEM6_VERSION ( )
inline

Definition at line 464 of file gnss_messages_novatel.h.

Member Function Documentation

◆ dumpToConsole()

void gnss_message::dumpToConsole ( std::ostream &  o) const
virtualinherited

Dumps the contents of the observation in a human-readable form to an std::ostream (set to std::cout to print to console)

Definition at line 107 of file gnss_messages_common.cpp.

References mrpt::obs::gnss::getAllFieldDescriptions(), and mrpt::obs::gnss::getAllFieldValues().

Here is the call graph for this function:

◆ dumpToStream()

void Message_NV_OEM6_VERSION::dumpToStream ( std::ostream &  out) const
overridevirtual

Dumps the contents of the observation in a human-readable form to a given output stream.

See also
dumpToConsole()

Implements mrpt::obs::gnss::gnss_message.

Definition at line 367 of file gnss_messages_novatel.cpp.

References mrpt::format(), and out.

Here is the call graph for this function:

◆ Factory()

gnss_message * gnss_message::Factory ( const gnss_message_type_t  msg_id)
staticinherited

Creates message.

Returns
nullptr on unknown msg type

Definition at line 49 of file gnss_messages_common.cpp.

References LIST_ALL_MSGS.

◆ FactoryKnowsMsgType()

bool gnss_message::FactoryKnowsMsgType ( const gnss_message_type_t  msg_id)
staticinherited

Returns true if Factory() has a registered constructor for this msg type.

Definition at line 62 of file gnss_messages_common.cpp.

References LIST_ALL_MSGS.

◆ fixEndianness()

void mrpt::obs::gnss::Message_NV_OEM6_VERSION::fixEndianness ( )
inlineoverridevirtual

If we are in a big endian system, reverse all fields >1 byte to fix its representation.

Only in binary frames, text-based derived classes obviously do not need to reimplement this one.

Reimplemented from mrpt::obs::gnss::gnss_message.

Definition at line 483 of file gnss_messages_novatel.h.

References components, crc, mrpt::obs::gnss::nv_oem6_header_t::fixEndianness(), header, and mrpt::reverseBytesInPlace().

Here is the call graph for this function:

◆ getAllFieldDescriptions()

virtual bool mrpt::obs::gnss::gnss_message::getAllFieldDescriptions ( [[maybe_unused] ] std::ostream &  o) const
inlinevirtualinherited

Dumps a header for getAllFieldValues()

Returns
false if not implemented for this message type

Definition at line 70 of file gnss_messages_common.h.

◆ getAllFieldValues()

virtual bool mrpt::obs::gnss::gnss_message::getAllFieldValues ( [[maybe_unused] ] std::ostream &  o) const
inlinevirtualinherited

Dumps a line with the sequence of all field values (without a line feed at the end).

See also
getAllFieldDescriptions()
Returns
false if not implemented for this message type

Definition at line 77 of file gnss_messages_common.h.

◆ getMessageTypeAsString()

const std::string & gnss_message::getMessageTypeAsString ( ) const
inherited

Returns "NMEA_GGA", etc.

Definition at line 76 of file gnss_messages_common.cpp.

References LIST_ALL_MSGS.

Referenced by mrpt::hwdrivers::CGPSInterface::implement_parser_NOVATEL_OEM6().

Here is the caller graph for this function:

◆ internal_readFromStream()

void Message_NV_OEM6_VERSION::internal_readFromStream ( mrpt::serialization::CArchive in)
overrideprotectedvirtual

Save to binary stream.

Launches an exception upon error

Implements mrpt::obs::gnss::gnss_message.

Definition at line 398 of file gnss_messages_novatel.cpp.

References ASSERT_BELOW_, mrpt::obs::gnss::fixEndianness(), mrpt::obs::gnss::header, and mrpt::serialization::CArchive::ReadBuffer().

Here is the call graph for this function:

◆ internal_writeToStream()

void Message_NV_OEM6_VERSION::internal_writeToStream ( mrpt::serialization::CArchive out) const
overrideprotectedvirtual

Save to binary stream.

Launches an exception upon error

Implements mrpt::obs::gnss::gnss_message.

Definition at line 385 of file gnss_messages_novatel.cpp.

References ASSERT_EQUAL_, mrpt::obs::gnss::header, mrpt::obs::gnss::nv_oem6_header_t::msg_len, and out.

◆ isOfClass()

template<class MSG_CLASS >
bool mrpt::obs::gnss::gnss_message::isOfClass ( ) const
inlineinherited

Definition at line 40 of file gnss_messages_common.h.

References mrpt::obs::gnss::gnss_message::isOfType().

Here is the call graph for this function:

◆ isOfType()

bool mrpt::obs::gnss::gnss_message::isOfType ( const gnss_message_type_t  type_id) const
inherited

Referenced by mrpt::obs::gnss::gnss_message::isOfClass().

Here is the caller graph for this function:

◆ readAndBuildFromStream()

gnss_message * gnss_message::readAndBuildFromStream ( mrpt::serialization::CArchive in)
staticinherited

Load from binary stream and creates object detecting its type (class factory).

Launches an exception upon error

Definition at line 117 of file gnss_messages_common.cpp.

References mrpt::obs::gnss::gnss_message::internal_readFromStream(), and THROW_EXCEPTION_FMT.

Referenced by mrpt::obs::gnss::gnss_message_ptr::operator=().

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

◆ readFromStream()

void gnss_message::readFromStream ( mrpt::serialization::CArchive in)
inherited

Load from binary stream into this existing object.

Launches an exception upon error.

Definition at line 99 of file gnss_messages_common.cpp.

References ASSERT_EQUAL_.

◆ writeToStream()

void gnss_message::writeToStream ( mrpt::serialization::CArchive out) const
inherited

Save to binary stream.

Launches an exception upon error

Definition at line 92 of file gnss_messages_common.cpp.

References out.

Referenced by mrpt::obs::gnss::gnss_message_ptr::gnss_message_ptr(), and mrpt::obs::gnss::gnss_message_ptr::operator=().

Here is the caller graph for this function:

Member Data Documentation

◆ components

std::vector<TComponentVersion> mrpt::obs::gnss::Message_NV_OEM6_VERSION::components

Definition at line 479 of file gnss_messages_novatel.h.

Referenced by fixEndianness().

◆ crc

uint32_t mrpt::obs::gnss::Message_NV_OEM6_VERSION::crc

Definition at line 480 of file gnss_messages_novatel.h.

Referenced by fixEndianness().

◆ header

nv_oem6_header_t mrpt::obs::gnss::Message_NV_OEM6_VERSION::header

Frame header.

Definition at line 477 of file gnss_messages_novatel.h.

Referenced by fixEndianness().

◆ message_type

gnss_message_type_t mrpt::obs::gnss::gnss_message::message_type
inherited

◆ num_comps

uint32_t mrpt::obs::gnss::Message_NV_OEM6_VERSION::num_comps {0}

Definition at line 478 of file gnss_messages_novatel.h.




Page generated by Doxygen 1.8.14 for MRPT 2.0.0 Git: b38439d21 Tue Mar 31 19:58:06 2020 +0200 at miƩ abr 1 00:50:30 CEST 2020