SoapySDR  0.3.0-g02fc7af6
Vendor and platform neutral SDR interface library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Types.hpp
Go to the documentation of this file.
1 
11 #pragma once
12 #include <SoapySDR/Config.hpp>
13 #include <SoapySDR/Types.h>
14 #include <vector>
15 #include <string>
16 #include <map>
17 
18 namespace SoapySDR
19 {
20 
22 typedef std::map<std::string, std::string> Kwargs;
23 
28 {
29 public:
30 
32  Range(void);
33 
35  Range(const double minimum, const double maximum);
36 
38  double minimum(void) const;
39 
41  double maximum(void) const;
42 
43 private:
44  double _min, _max;
45 };
46 
52 typedef std::vector<Range> RangeList;
53 
54 }
55 
56 inline double SoapySDR::Range::minimum(void) const
57 {
58  return _min;
59 }
60 
61 inline double SoapySDR::Range::maximum(void) const
62 {
63  return _max;
64 }
Definition: Types.hpp:27
double maximum(void) const
Get the range maximum.
Definition: Types.hpp:61
std::map< std::string, std::string > Kwargs
Typedef for a dictionary of key-value string arguments.
Definition: Types.hpp:22
std::vector< Range > RangeList
Definition: Types.hpp:52
double minimum(void) const
Get the range minimum.
Definition: Types.hpp:56
#define SOAPY_SDR_API
Definition: Config.h:41