2017-10-22 07:14:25 +00:00
|
|
|
/*!
|
|
|
|
* \file test_flags.h
|
|
|
|
* \brief Helper file for unit testing
|
|
|
|
* \author Carles Fernandez-Prades, 2017. cfernandez(at)cttc.es
|
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2017-10-22 07:14:25 +00:00
|
|
|
*
|
2020-12-30 12:35:06 +00:00
|
|
|
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
|
2017-10-22 07:14:25 +00:00
|
|
|
* This file is part of GNSS-SDR.
|
|
|
|
*
|
2020-12-30 12:35:06 +00:00
|
|
|
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
|
2020-02-08 00:20:02 +00:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2017-10-22 07:14:25 +00:00
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2017-10-22 07:14:25 +00:00
|
|
|
*/
|
|
|
|
|
2020-02-08 09:10:46 +00:00
|
|
|
#ifndef GNSS_SDR_TEST_FLAGS_H
|
|
|
|
#define GNSS_SDR_TEST_FLAGS_H
|
2017-10-22 07:14:25 +00:00
|
|
|
|
2024-04-29 06:27:33 +00:00
|
|
|
|
|
|
|
#include <cstdint>
|
2019-08-17 11:56:54 +00:00
|
|
|
#include <string>
|
2017-10-22 07:14:25 +00:00
|
|
|
|
2024-04-29 06:27:33 +00:00
|
|
|
|
|
|
|
#if USE_GLOG_AND_GFLAGS
|
|
|
|
#include <gflags/gflags.h>
|
2017-10-22 07:14:25 +00:00
|
|
|
#if defined GNUPLOT_EXECUTABLE
|
2018-03-03 01:03:39 +00:00
|
|
|
DEFINE_string(gnuplot_executable, std::string(GNUPLOT_EXECUTABLE), "Gnuplot binary path");
|
2017-10-22 07:14:25 +00:00
|
|
|
#elif !defined GNUPLOT_EXECUTABLE
|
2018-03-03 01:03:39 +00:00
|
|
|
DEFINE_string(gnuplot_executable, "", "Gnuplot binary path");
|
2017-10-22 07:14:25 +00:00
|
|
|
#endif
|
2017-10-28 18:17:51 +00:00
|
|
|
DEFINE_bool(plot_acq_grid, false, "Plots acquisition grid with gnuplot");
|
2017-10-24 12:23:59 +00:00
|
|
|
DEFINE_int32(plot_decimate, 1, "Decimate plots");
|
2024-04-29 06:27:33 +00:00
|
|
|
#else
|
|
|
|
#include <absl/flags/flag.h>
|
|
|
|
#if defined GNUPLOT_EXECUTABLE
|
2024-05-01 06:39:22 +00:00
|
|
|
ABSL_FLAG(std::string, gnuplot_executable, std::string(GNUPLOT_EXECUTABLE), "Gnuplot binary path");
|
2024-04-29 06:27:33 +00:00
|
|
|
#elif !defined GNUPLOT_EXECUTABLE
|
|
|
|
ABSL_FLAG(std::string, gnuplot_executable, "", "Gnuplot binary path");
|
|
|
|
#endif
|
|
|
|
ABSL_FLAG(bool, plot_acq_grid, false, "Plots acquisition grid with gnuplot");
|
|
|
|
ABSL_FLAG(int32_t, plot_decimate, 1, "Decimate plots");
|
|
|
|
#endif
|
2017-10-22 07:14:25 +00:00
|
|
|
#endif
|