GNU Radio Radar Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Macros
print_results_impl.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2014 Communications Engineering Lab, KIT.
4  *
5  * This is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3, or (at your option)
8  * any later version.
9  *
10  * This software is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this software; see the file COPYING. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef INCLUDED_RADAR_PRINT_RESULTS_IMPL_H
22 #define INCLUDED_RADAR_PRINT_RESULTS_IMPL_H
23 
24 #include <radar/print_results.h>
25 #include <fstream>
26 
27 namespace gr {
28  namespace radar {
29 
31  {
32  private:
33  // Nothing to declare in this block.
34 
35  public:
36  print_results_impl(bool store_msg, const std::string filename);
38  void handle_msg(pmt::pmt_t msg);
39 
40  pmt::pmt_t d_port_id_in;
42  pmt::pmt_t d_msg_part;
43 
44  std::ofstream d_file;
45  std::string d_filename;
47  };
48 
49  } // namespace radar
50 } // namespace gr
51 
52 #endif /* INCLUDED_RADAR_PRINT_RESULTS_IMPL_H */
53 
void handle_msg(pmt::pmt_t msg)
pmt::pmt_t d_port_id_in
Definition: print_results_impl.h:40
size_t d_size_msg
Definition: print_results_impl.h:41
pmt::pmt_t d_msg_part
Definition: print_results_impl.h:42
This block prints data of messages filled with data of the structure [ [[symbol_0],[data_0]], [[symbol_1],[data_1]], ...] on the command line. Only data of the datatypes f32vector and long, and rx_time tuples are displayed. The output can also be stored in a text file.
Definition: print_results.h:39
std::string d_filename
Definition: print_results_impl.h:45
bool d_store_msg
Definition: print_results_impl.h:46
std::ofstream d_file
Definition: print_results_impl.h:44
Definition: print_results_impl.h:30
print_results_impl(bool store_msg, const std::string filename)
size_t d_size_part
Definition: print_results_impl.h:41