Main MRPT website > C++ reference for MRPT 1.9.9
Classes | Namespaces | Macros
gnss_messages_common.h File Reference
#include <mrpt/serialization/CArchive.h>
#include <mrpt/system/datetime.h>
#include <iosfwd>
#include <cstring>
#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 161 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 150 of file gnss_messages_common.h.

◆ GNSS_BINARY_MSG_DEFINITION_MID_END

#define GNSS_BINARY_MSG_DEFINITION_MID_END
Value:
} \
;

Definition at line 157 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:47

Definition at line 139 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:48
GLuint in
Definition: glext.h:7274

Definition at line 121 of file gnss_messages_common.h.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at lun oct 28 00:14:14 CET 2019