GNU Radio's SDR Package
types.h
Go to the documentation of this file.
1
/*
2
* Copyright 2011-2014 Free Software Foundation, Inc.
3
*
4
* This file is part of GNU Radio
5
*
6
* GNU Radio is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 3, or (at your option)
9
* any later version.
10
*
11
* GNU Radio is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with GNU Radio; see the file COPYING. If not, write to
18
* the Free Software Foundation, Inc., 51 Franklin Street,
19
* Boston, MA 02110-1301, USA.
20
*/
21
22
#ifndef INCLUDED_GR_SDR_TYPES_H
23
#define INCLUDED_GR_SDR_TYPES_H
24
25
#include <
gnuradio/sdr/api.h
>
26
#include <map>
27
#include <string>
28
#include <vector>
29
30
namespace
gr
{
31
namespace
sdr {
32
33
//! Typedef for a dictionary of key-value string arguments
34
typedef
std::map<std::string, std::string>
kwargs_t
;
35
36
/*!
37
* A simple min/max numeric range pair
38
*/
39
class
GR_SDR_API
range_t
40
{
41
public
:
42
43
//! Create an empty range (0.0, 0.0)
44
range_t
(
void
);
45
46
//! Create a min/max range
47
range_t
(
const
double
minimum,
const
double
maximum);
48
49
//! Get the range minimum
50
double
minimum(
void
)
const
;
51
52
//! Get the range maximum
53
double
maximum(
void
)
const
;
54
55
private
:
56
double
_min, _max;
57
};
58
59
}}
60
61
#endif
/* INCLUDED_GR_SDR_TYPES_H */
api.h
gr::sdr::range_t
Definition:
types.h:39
GR_SDR_API
#define GR_SDR_API
Definition:
api.h:30
gr::sdr::kwargs_t
std::map< std::string, std::string > kwargs_t
Typedef for a dictionary of key-value string arguments.
Definition:
types.h:34
gr
Definition:
sink.h:29
include
gnuradio
sdr
types.h
Generated by
1.8.15