1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-11-09 03:33:05 +00:00

moved logging output from template fct in header to source file to not have to include logging in header. Added maybe_unused to constructor argument which is unused to fix warning

This commit is contained in:
Lenhart
2021-04-19 16:05:53 +02:00
parent dbc8ea18bf
commit 595733bf67
3 changed files with 12 additions and 4 deletions

View File

@@ -101,9 +101,14 @@ size_t FifoReader::read_gr_complex(int noutput_items, gr_vector_void_star &outpu
}
else
{
LOG(ERROR) << "unhandled FIFO event";
fifo_error_output();
break;
}
}
return items_retrieved;
}
void FifoReader::fifo_error_output() const
{
LOG(ERROR) << "unhandled FIFO event";
}

View File

@@ -26,7 +26,6 @@
* \{ */
/** \addtogroup Signal_Source_gnuradio_blocks
* \{ */
class FifoReader : virtual public gr::sync_block
{
public:
@@ -80,13 +79,17 @@ private:
}
else
{
LOG(ERROR) << "unhandled FIFO event";
fifo_error_output();
break;
}
}
return items_retrieved;
}
//! this function moves logging output from this header into the source file
//! thereby eliminating the need to include glog/logging.h in this header
void fifo_error_output() const;
const std::string file_name_;
const std::string sample_type_;
std::ifstream fifo_;