18 #ifndef GNSS_SDR_SERDES_NAV_MESSAGE_H 19 #define GNSS_SDR_SERDES_NAV_MESSAGE_H 21 #include "nav_message.pb.h" 45 GOOGLE_PROTOBUF_VERIFY_VERSION;
55 this->navmsg_ = other.navmsg_;
60 this->navmsg_ = rhs.navmsg_;
66 this->navmsg_ = std::move(other.navmsg_);
73 this->navmsg_ = std::move(other.navmsg_);
78 inline std::string
createProtobuffer(
const std::shared_ptr<Nav_Message_Packet> nav_msg_packet)
83 navmsg_.set_system(nav_msg_packet->system);
84 navmsg_.set_signal(nav_msg_packet->signal);
85 navmsg_.set_prn(nav_msg_packet->prn);
86 navmsg_.set_tow_at_current_symbol_ms(nav_msg_packet->tow_at_current_symbol_ms);
87 navmsg_.set_nav_message(nav_msg_packet->nav_message);
89 navmsg_.SerializeToString(&data);
98 navmsg.
system = msg.system();
99 navmsg.
signal = msg.signal();
100 navmsg.
prn = msg.prn();
108 gnss_sdr::navMsg navmsg_{};
114 #endif // GNSS_SDR_SERDES_NAV_MESSAGE_H This class implements serialization and deserialization of Nav_Message_Packet objects using Protocol ...
Serdes_Nav_Message & operator=(Serdes_Nav_Message &&other) noexcept
< Move assignment operator
std::string signal
GNSS signal: "1C" for GPS L1 C/A, "1B" for Galileo E1b/c, "1G" for Glonass L1 C/A, "2S" for GPS L2 L2C(M), "2G" for Glonass L2 C/A, "L5" for GPS L5 and "5X" for Galileo E5a.
std::string createProtobuffer(const std::shared_ptr< Nav_Message_Packet > nav_msg_packet)
Nav_Message_Packet readProtobuffer(const gnss_sdr::navMsg &msg) const
< Deserialization
std::string system
GNSS constellation: "G" for GPS, "R" for Glonass, "S" for SBAS, "E" for Galileo and "C" for Beidou...
Class for storage of decoded navigation messages.
int32_t tow_at_current_symbol_ms
Time of week of the current symbol, in ms.
Serdes_Nav_Message(Serdes_Nav_Message &&other) noexcept
< Move constructor
std::string nav_message
Content of the navigation page.
Serdes_Nav_Message(const Serdes_Nav_Message &other) noexcept
< Copy constructor
Serdes_Nav_Message & operator=(const Serdes_Nav_Message &rhs) noexcept
< Copy assignment operator