Main MRPT website > C++ reference for MRPT 1.5.6
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions
mrpt::obs::gnss::Message_NV_OEM6_GENERIC_SHORT_FRAME Struct Reference

Detailed Description

Novatel generic short-header frame (to store frames without a parser at the present time).

See also
mrpt::obs::CObservationGPS

Definition at line 155 of file gnss_messages_novatel.h.

#include <mrpt/obs/gnss_messages_novatel.h>

Inheritance diagram for mrpt::obs::gnss::Message_NV_OEM6_GENERIC_SHORT_FRAME:
Inheritance graph

Public Member Functions

 Message_NV_OEM6_GENERIC_SHORT_FRAME ()
 
void dumpToStream (mrpt::utils::CStream &out) const MRPT_OVERRIDE
 Dumps the contents of the observation in a human-readable form to a given output stream. More...
 
void writeToStream (mrpt::utils::CStream &out) const
 Save to binary stream. Launches an exception upon error. More...
 
void readFromStream (mrpt::utils::CStream &in)
 Load from binary stream into this existing object. Launches an exception upon error. More...
 
bool isOfType (const gnss_message_type_t type_id) const
 
template<class MSG_CLASS >
bool isOfClass () const
 
void dumpToConsole (std::ostream &o=std::cout) const
 Dumps the contents of the observation in a human-readable form to an std::ostream (default=console) More...
 
virtual bool getAllFieldDescriptions (std::ostream &o) const
 Dumps a header for getAllFieldValues() More...
 
virtual bool getAllFieldValues (std::ostream &o) const
 Dumps a line with the sequence of all field values (without a line feed at the end). More...
 
const std::stringgetMessageTypeAsString () const
 Returns "NMEA_GGA", etc. More...
 

Static Public Member Functions

static gnss_messagereadAndBuildFromStream (mrpt::utils::CStream &in)
 Load from binary stream and creates object detecting its type (class factory). Launches an exception upon error. 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_short_header_t header
 Frame header. More...
 
std::vector< uint8_tmsg_body
 
gnss_message_type_t message_type
 Type of GNSS message. More...
 

Protected Member Functions

void internal_writeToStream (mrpt::utils::CStream &out) const MRPT_OVERRIDE
 Save to binary stream. Launches an exception upon error. More...
 
void internal_readFromStream (mrpt::utils::CStream &in) MRPT_OVERRIDE
 Save to binary stream. Launches an exception upon error. More...
 

Constructor & Destructor Documentation

◆ Message_NV_OEM6_GENERIC_SHORT_FRAME()

mrpt::obs::gnss::Message_NV_OEM6_GENERIC_SHORT_FRAME::Message_NV_OEM6_GENERIC_SHORT_FRAME ( )
inline

Definition at line 157 of file gnss_messages_novatel.h.

Member Function Documentation

◆ dumpToConsole()

void mrpt::obs::gnss::gnss_message::dumpToConsole ( std::ostream &  o = std::cout) const
inherited

Dumps the contents of the observation in a human-readable form to an std::ostream (default=console)

◆ dumpToStream()

void Message_NV_OEM6_GENERIC_SHORT_FRAME::dumpToStream ( mrpt::utils::CStream out) const
virtual

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 69 of file gnss_messages_novatel.cpp.

References header, mrpt::obs::gnss::nv_oem6_short_header_t::msg_id, and mrpt::utils::CStream::printf().

◆ Factory()

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

Creates message.

Returns
NULL on unknown msg type

Definition at line 47 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 58 of file gnss_messages_common.cpp.

References LIST_ALL_MSGS.

◆ getAllFieldDescriptions()

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

◆ getAllFieldValues()

virtual bool mrpt::obs::gnss::gnss_message::getAllFieldValues ( 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

Reimplemented in mrpt::obs::gnss::Message_NMEA_ZDA, mrpt::obs::gnss::Message_NMEA_VTG, mrpt::obs::gnss::Message_NMEA_RMC, mrpt::obs::gnss::Message_NMEA_GLL, and mrpt::obs::gnss::Message_NMEA_GGA.

Definition at line 42 of file gnss_messages_common.h.

◆ getMessageTypeAsString()

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

Returns "NMEA_GGA", etc.

Definition at line 70 of file gnss_messages_common.cpp.

References LIST_ALL_MSGS.

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

◆ internal_readFromStream()

void Message_NV_OEM6_GENERIC_SHORT_FRAME::internal_readFromStream ( mrpt::utils::CStream in)
protectedvirtual

Save to binary stream. Launches an exception upon error.

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

Definition at line 81 of file gnss_messages_novatel.cpp.

References header, and msg_body.

◆ internal_writeToStream()

void Message_NV_OEM6_GENERIC_SHORT_FRAME::internal_writeToStream ( mrpt::utils::CStream out) const
protectedvirtual

Save to binary stream. Launches an exception upon error.

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

Definition at line 74 of file gnss_messages_novatel.cpp.

References header, msg_body, and mrpt::utils::CStream::WriteBuffer().

◆ isOfClass()

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

Definition at line 33 of file gnss_messages_common.h.

◆ isOfType()

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

◆ readAndBuildFromStream()

gnss_message * gnss_message::readAndBuildFromStream ( mrpt::utils::CStream in)
staticinherited

Load from binary stream and creates object detecting its type (class factory). Launches an exception upon error.

Definition at line 104 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::gnss_message_ptr(), and mrpt::obs::gnss::gnss_message_ptr::operator=().

◆ readFromStream()

void gnss_message::readFromStream ( mrpt::utils::CStream in)
inherited

Load from binary stream into this existing object. Launches an exception upon error.

Definition at line 95 of file gnss_messages_common.cpp.

References ASSERT_EQUAL_.

◆ writeToStream()

void gnss_message::writeToStream ( mrpt::utils::CStream out) const
inherited

Save to binary stream. Launches an exception upon error.

Definition at line 87 of file gnss_messages_common.cpp.

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

Member Data Documentation

◆ header

nv_oem6_short_header_t mrpt::obs::gnss::Message_NV_OEM6_GENERIC_SHORT_FRAME::header

Frame header.

Definition at line 159 of file gnss_messages_novatel.h.

Referenced by dumpToStream(), internal_readFromStream(), and internal_writeToStream().

◆ message_type

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

◆ msg_body

std::vector<uint8_t> mrpt::obs::gnss::Message_NV_OEM6_GENERIC_SHORT_FRAME::msg_body

Definition at line 160 of file gnss_messages_novatel.h.

Referenced by internal_readFromStream(), and internal_writeToStream().




Page generated by Doxygen 1.8.14 for MRPT 1.5.6 Git: 4c65e8431 Tue Apr 24 08:18:17 2018 +0200 at lun oct 28 01:35:26 CET 2019