1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 04:00:34 +00:00

Add missing includes

This commit is contained in:
Carles Fernandez 2021-08-30 16:12:13 +02:00
parent 969c85fc45
commit 1330958e99
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 6 additions and 1 deletions

View File

@ -20,6 +20,7 @@
#include <glog/logging.h>
#include <iomanip> // for std::setw()
#include <iostream> // for cerr, cout
#include <utility> // for atd::move
Tlm_CRC_Stats::Tlm_CRC_Stats()
@ -27,6 +28,7 @@ Tlm_CRC_Stats::Tlm_CRC_Stats()
enable_crc_stats = false;
}
void Tlm_CRC_Stats::initialize(std::string dump_crc_stats_filename_)
{
d_dump_crc_stats_filename = std::move(dump_crc_stats_filename_);
@ -36,6 +38,7 @@ void Tlm_CRC_Stats::initialize(std::string dump_crc_stats_filename_)
num_crc_not_ok = 0;
}
bool Tlm_CRC_Stats::set_channel(int32_t channel_)
{
std::string dump_path;
@ -84,6 +87,7 @@ bool Tlm_CRC_Stats::set_channel(int32_t channel_)
return true;
}
void Tlm_CRC_Stats::update_CRC_stats(bool CRC)
{
if (CRC)
@ -96,6 +100,7 @@ void Tlm_CRC_Stats::update_CRC_stats(bool CRC)
}
}
Tlm_CRC_Stats::~Tlm_CRC_Stats()
{
uint32_t num_crc_tests = num_crc_ok + num_crc_not_ok;
@ -126,7 +131,6 @@ Tlm_CRC_Stats::~Tlm_CRC_Stats()
DLOG(INFO) << "Telemetry CRC stats cannot write on the output file " << d_dump_crc_stats_filename.c_str();
}
const auto pos = d_dump_file.tellp();
try
{

View File

@ -17,6 +17,7 @@
#ifndef GNSS_SDR_CRC_STATS_H
#define GNSS_SDR_CRC_STATS_H
#include <cstdint>
#include <fstream> // for std::ofstream
#include <string> // for std::string