GNU Radio Radar Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Macros
msg_gate_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_MSG_GATE_IMPL_H
22 #define INCLUDED_RADAR_MSG_GATE_IMPL_H
23 
24 #include <radar/msg_gate.h>
25 
26 namespace gr {
27  namespace radar {
28 
29  class msg_gate_impl : public msg_gate
30  {
31  private:
32  // Nothing to declare in this block.
33 
34  public:
35  msg_gate_impl(std::vector<std::string> keys, std::vector<float> val_min, std::vector<float> val_max);
37  void handle_msg(pmt::pmt_t msg);
38 
39  std::vector<std::string> d_keys;
40  std::vector<float> d_val_max;
41  std::vector<float> d_val_min;
42 
44  };
45 
46  } // namespace radar
47 } // namespace gr
48 
49 #endif /* INCLUDED_RADAR_MSG_GATE_IMPL_H */
50 
void handle_msg(pmt::pmt_t msg)
std::vector< std::string > d_keys
Definition: msg_gate_impl.h:39
pmt::pmt_t d_port_id_in
Definition: msg_gate_impl.h:43
pmt::pmt_t d_port_id_out
Definition: msg_gate_impl.h:43
std::vector< float > d_val_min
Definition: msg_gate_impl.h:41
Definition: msg_gate_impl.h:29
std::vector< float > d_val_max
Definition: msg_gate_impl.h:40
This block blocks messages whose data is not in range of val_min to val_max. All parameters are given...
Definition: msg_gate.h:41
msg_gate_impl(std::vector< std::string > keys, std::vector< float > val_min, std::vector< float > val_max)