GNU Radio's GSM Package
extract_immediate_assignment_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * @file
4 * @author (C) 2015 by Roman Khassraf <rkhassraf@gmail.com>
5 * @section LICENSE
6 *
7 * Gr-gsm is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3, or (at your option)
10 * any later version.
11 *
12 * Gr-gsm is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with gr-gsm; see the file COPYING. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street,
20 * Boston, MA 02110-1301, USA.
21 */
22
23#ifndef INCLUDED_GSM_EXTRACT_IMMEDIATE_ASSIGNMENT_IMPL_H
24#define INCLUDED_GSM_EXTRACT_IMMEDIATE_ASSIGNMENT_IMPL_H
25
27#include <map>
28#include <vector>
29
30namespace gr {
31 namespace gsm {
32
34 {
35 public:
36 uint32_t frame_nr;
37 std::string channel_type;
38 uint8_t timeslot;
39 uint8_t subchannel;
40 uint8_t hopping;
41 uint8_t maio;
42 uint8_t hsn;
43 uint16_t arfcn;
45 std::string mobile_allocation;
46
48 hopping(false), maio(0), hsn(0), arfcn(0), timing_advance(0), mobile_allocation("") {};
50 };
51
52 typedef std::map<uint32_t, immediate_assignment> immediate_assignment_map;
53
55 {
56 private:
57 void process_message(pmt::pmt_t msg);
58 immediate_assignment_map d_assignment_map;
59 bool d_print_immediate_assignments;
60 bool d_ignore_gprs;
61 bool d_unique_references;
62 public:
63 virtual std::vector<int> get_frame_numbers();
64 virtual std::vector<std::string> get_channel_types();
65 virtual std::vector<int> get_timeslots();
66 virtual std::vector<int> get_subchannels();
67 virtual std::vector<int> get_hopping();
68 virtual std::vector<int> get_maios();
69 virtual std::vector<int> get_hsns();
70 virtual std::vector<int> get_arfcns();
71 virtual std::vector<int> get_timing_advances();
72 virtual std::vector<std::string> get_mobile_allocations();
73 extract_immediate_assignment_impl(bool print_immediate_assignments=false,
74 bool ignore_gprs=false, bool unique_references=false);
76 };
77 } // namespace gsm
78} // namespace gr
79
80#endif /* INCLUDED_GSM_EXTRACT_IMMEDIATE_ASSIGNMENT_IMPL_H */
Definition extract_immediate_assignment_impl.h:55
virtual std::vector< int > get_arfcns()
virtual std::vector< int > get_hsns()
virtual std::vector< std::string > get_channel_types()
virtual std::vector< std::string > get_mobile_allocations()
virtual std::vector< int > get_timing_advances()
virtual std::vector< int > get_hopping()
virtual std::vector< int > get_frame_numbers()
virtual std::vector< int > get_subchannels()
extract_immediate_assignment_impl(bool print_immediate_assignments=false, bool ignore_gprs=false, bool unique_references=false)
virtual std::vector< int > get_timeslots()
virtual std::vector< int > get_maios()
<+description of block+>
Definition extract_immediate_assignment.h:39
Definition extract_immediate_assignment_impl.h:34
uint32_t frame_nr
Definition extract_immediate_assignment_impl.h:36
uint8_t timing_advance
Definition extract_immediate_assignment_impl.h:44
uint16_t arfcn
Definition extract_immediate_assignment_impl.h:43
immediate_assignment()
Definition extract_immediate_assignment_impl.h:47
uint8_t timeslot
Definition extract_immediate_assignment_impl.h:38
~immediate_assignment()
Definition extract_immediate_assignment_impl.h:49
std::string mobile_allocation
Definition extract_immediate_assignment_impl.h:45
std::string channel_type
Definition extract_immediate_assignment_impl.h:37
uint8_t subchannel
Definition extract_immediate_assignment_impl.h:39
uint8_t maio
Definition extract_immediate_assignment_impl.h:41
uint8_t hopping
Definition extract_immediate_assignment_impl.h:40
uint8_t hsn
Definition extract_immediate_assignment_impl.h:42
std::map< uint32_t, immediate_assignment > immediate_assignment_map
Definition extract_immediate_assignment_impl.h:52
Definition constants.h:29