MRPT  1.9.9
gnss_messages_common.h File Reference
#include <mrpt/obs/gnss_messages_type_list.h>
#include <mrpt/serialization/CArchive.h>
#include <mrpt/system/datetime.h>
#include <cstring>
#include <iosfwd>
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 162 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(std::ostream& out) const override;

Definition at line 151 of file gnss_messages_common.h.

◆ GNSS_BINARY_MSG_DEFINITION_MID_END

#define GNSS_BINARY_MSG_DEFINITION_MID_END
Value:
} \
;

Definition at line 158 of file gnss_messages_common.h.

◆ GNSS_BINARY_MSG_DEFINITION_START

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

Definition at line 140 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::serialization::CArchive& out) \
const override \
{ \
out << static_cast<uint32_t>(DATA_LEN); \
out.WriteBuffer(DATA_PTR, DATA_LEN); \
} \
void internal_readFromStream(mrpt::serialization::CArchive& in) override \
{ \
uint32_t nBytesInStream; \
in >> nBytesInStream; \
ASSERT_EQUAL_(nBytesInStream, DATA_LEN); \
in.ReadBuffer(DATA_PTR, DATA_LEN); \
} \
\
public:
Virtual base class for "archives": classes abstracting I/O streams.
Definition: CArchive.h:53
GLuint in
Definition: glext.h:7391

Definition at line 122 of file gnss_messages_common.h.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019