1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-13 19:50:34 +00:00

Fix building (add missing include)

This commit is contained in:
Carles Fernandez 2024-06-28 10:51:10 +02:00
parent 1d815f0bbf
commit c38fb0fca5
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -18,6 +18,7 @@
#include <bitset> #include <bitset>
#include <iomanip> #include <iomanip>
#include <ios> #include <ios>
#include <sstream>
uint32_t Osnma_Helper::compute_gst(uint32_t WN, uint32_t TOW) const uint32_t Osnma_Helper::compute_gst(uint32_t WN, uint32_t TOW) const
{ {
@ -25,6 +26,7 @@ uint32_t Osnma_Helper::compute_gst(uint32_t WN, uint32_t TOW) const
return GST; return GST;
} }
std::vector<uint8_t> Osnma_Helper::gst_to_uint8(uint32_t GST) const std::vector<uint8_t> Osnma_Helper::gst_to_uint8(uint32_t GST) const
{ {
std::vector<uint8_t> res; std::vector<uint8_t> res;
@ -36,6 +38,7 @@ std::vector<uint8_t> Osnma_Helper::gst_to_uint8(uint32_t GST) const
return res; return res;
} }
/** /**
* @brief Convert a binary string to a vector of bytes. * @brief Convert a binary string to a vector of bytes.
* *
@ -67,6 +70,7 @@ std::vector<uint8_t> Osnma_Helper::bytes(const std::string& binaryString) {
return bytes; return bytes;
} }
std::string Osnma_Helper::verification_status_str(int status) std::string Osnma_Helper::verification_status_str(int status)
{ {
switch (status) { switch (status) {
@ -76,6 +80,8 @@ std::string Osnma_Helper::verification_status_str(int status)
default: return "UNKNOWN"; default: return "UNKNOWN";
} }
} }
std::string Osnma_Helper::convert_to_hex_string(const std::vector<uint8_t>& vector) std::string Osnma_Helper::convert_to_hex_string(const std::vector<uint8_t>& vector)
{ {
std::stringstream ss; std::stringstream ss;