Main MRPT website > C++ reference for MRPT 1.5.7
Classes | Namespaces | Macros
gnss_messages_common.h File Reference
#include <mrpt/utils/CStream.h>
#include <mrpt/system/datetime.h>
#include <iostream>
#include <cstring>
#include <mrpt/obs/link_pragmas.h>
#include <mrpt/obs/gnss_messages_type_list.h>
Include dependency graph for gnss_messages_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mrpt::obs::gnss::gnss_message
 Pure virtual base for all message types. More...
 
struct  mrpt::obs::gnss::gnss_message_ptr
 A smart pointer to a GNSS message. More...
 
struct  mrpt::obs::gnss::UTC_time
 UTC (Coordinated Universal Time) time-stamp structure for GPS messages. More...
 

Namespaces

 mrpt
 This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
 
 mrpt::obs
 This namespace contains representation of robot actions and observations.
 
 mrpt::obs::gnss
 GNSS (GPS) data structures, mainly for use within mrpt::obs::CObservationGPS.
 

Macros

#define GNSS_MESSAGE_BINARY_BLOCK(DATA_PTR, DATA_LEN)
 
#define GNSS_BINARY_MSG_DEFINITION_START(_MSG_ID)
 
#define GNSS_BINARY_MSG_DEFINITION_MID
 
#define GNSS_BINARY_MSG_DEFINITION_MID_END   };
 
#define GNSS_BINARY_MSG_DEFINITION_END
 

Macro Definition Documentation

◆ GNSS_BINARY_MSG_DEFINITION_END

#define GNSS_BINARY_MSG_DEFINITION_END
Value:
GNSS_BINARY_MSG_DEFINITION_MID \
GNSS_BINARY_MSG_DEFINITION_MID_END

Definition at line 100 of file gnss_messages_common.h.

◆ GNSS_BINARY_MSG_DEFINITION_MID

#define GNSS_BINARY_MSG_DEFINITION_MID
Value:
content_t() { ::memset(this,0,sizeof(*this)); } \
}; \
content_t fields; /** Message content, accesible by individual fields */ \
void dumpToStream( mrpt::utils::CStream &out ) const MRPT_OVERRIDE;
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
Definition: CStream.h:38

Definition at line 90 of file gnss_messages_common.h.

◆ GNSS_BINARY_MSG_DEFINITION_MID_END

#define GNSS_BINARY_MSG_DEFINITION_MID_END   };

Definition at line 97 of file gnss_messages_common.h.

◆ GNSS_BINARY_MSG_DEFINITION_START

#define GNSS_BINARY_MSG_DEFINITION_START (   _MSG_ID)
Value:
struct OBS_IMPEXP Message_##_MSG_ID : public gnss_message { \
GNSS_MESSAGE_BINARY_BLOCK(&fields,sizeof(fields)) \
enum { msg_type = _MSG_ID }; /* Static msg type (member expected by templates)*/ \
Message_##_MSG_ID() : gnss_message((gnss_message_type_t)msg_type) {} \
struct OBS_IMPEXP content_t {
gnss_message_type_t
List of all known GNSS message types.

Definition at line 83 of file gnss_messages_common.h.

◆ GNSS_MESSAGE_BINARY_BLOCK

#define GNSS_MESSAGE_BINARY_BLOCK (   DATA_PTR,
  DATA_LEN 
)
Value:
protected: \
void internal_writeToStream(mrpt::utils::CStream &out) const MRPT_OVERRIDE { \
out << static_cast<uint32_t>(DATA_LEN); out.WriteBuffer(DATA_PTR,DATA_LEN); } \
void internal_readFromStream(mrpt::utils::CStream &in) MRPT_OVERRIDE { \
uint32_t nBytesInStream; in >> nBytesInStream; \
ASSERT_EQUAL_(nBytesInStream,DATA_LEN); \
in.ReadBuffer(DATA_PTR,DATA_LEN); } \
public:
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
Definition: CStream.h:38
GLuint in
Definition: glext.h:6301

Definition at line 73 of file gnss_messages_common.h.




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