GNSS receiver tools  1
Tools for use with GNSS receivers
SkyTraqBin::Input_message_with_subid Class Reference

Base class for messages that go to the GPS receiver with a sub-ID. More...

#include <SkyTraqBin_inputs_with_subid.hh>

+ Inheritance diagram for SkyTraqBin::Input_message_with_subid:

Public Types

typedef std::shared_ptr< Input_message_with_subidptr
 
- Public Types inherited from SkyTraqBin::Input_message
typedef std::shared_ptr< Input_messageptr
 
- Public Types inherited from GNSS::Message
typedef std::shared_ptr< Messageptr
 

Public Member Functions

const Payload_length message_length (void) const
 The total length of the message. More...
 
virtual void to_buf (unsigned char *buffer) const
 Write the message into a buffer. More...
 
- Public Member Functions inherited from SkyTraqBin::Input_message
const Payload_length message_length (void) const
 The total length of the message. More...
 
- Public Member Functions inherited from SkyTraqBin::Message
const uint8_t message_id (void) const
 Getter method for the message ID. More...
 
- Public Member Functions inherited from GNSS::Message
virtual ~Message ()
 Virtual destructor to force polymorphism. More...
 
template<typename T >
bool isa (void) const
 Check the type of an object. More...
 
template<typename T >
T * cast_as (void)
 Recast this object to another type. More...
 
- Public Member Functions inherited from SkyTraqBin::with_subid
 with_subid (uint8_t subid)
 Constructor. More...
 
const uint8_t message_subid (void) const
 Getter method for message sub-ID. More...
 

Protected Member Functions

virtual const Payload_length body_length (void) const
 The length of the body (not including message id or sub-id) More...
 
virtual void body_to_buf (unsigned char *buffer) const
 Write body fields into a pre-allocated buffer. More...
 
 Input_message_with_subid (uint8_t id, uint8_t subid)
 Constructor from a message ID and sub-ID. More...
 
- Protected Member Functions inherited from SkyTraqBin::Input_message
 Input_message (uint8_t id)
 Constructor from a message ID. More...
 
- Protected Member Functions inherited from SkyTraqBin::Message
 Message (uint8_t id)
 Constructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from SkyTraqBin::Message
uint8_t _msg_id
 
- Protected Attributes inherited from SkyTraqBin::with_subid
uint8_t _msg_subid
 

Detailed Description

Base class for messages that go to the GPS receiver with a sub-ID.

Definition at line 47 of file SkyTraqBin_inputs_with_subid.hh.

Member Typedef Documentation

Constructor & Destructor Documentation

SkyTraqBin::Input_message_with_subid::Input_message_with_subid ( uint8_t  id,
uint8_t  subid 
)
inlineprotected

Constructor from a message ID and sub-ID.

Definition at line 56 of file SkyTraqBin_inputs_with_subid.hh.

Member Function Documentation

virtual const Payload_length SkyTraqBin::Input_message_with_subid::body_length ( void  ) const
inlineprotectedvirtual

The length of the body (not including message id or sub-id)

Reimplemented from SkyTraqBin::Input_message.

Definition at line 50 of file SkyTraqBin_inputs_with_subid.hh.

virtual void SkyTraqBin::Input_message_with_subid::body_to_buf ( unsigned char *  buffer) const
inlineprotectedvirtual

Write body fields into a pre-allocated buffer.

Reimplemented from SkyTraqBin::Input_message.

Definition at line 53 of file SkyTraqBin_inputs_with_subid.hh.

const Payload_length SkyTraqBin::Input_message_with_subid::message_length ( void  ) const
inline

The total length of the message.

Definition at line 63 of file SkyTraqBin_inputs_with_subid.hh.

void SkyTraqBin::Input_message_with_subid::to_buf ( unsigned char *  buffer) const
virtual

Write the message into a buffer.

Use message_length() to know how big the buffer needs to be.

Reimplemented from SkyTraqBin::Input_message.

Definition at line 70 of file SkyTraqBin.cc.


The documentation for this class was generated from the following files: