UHD 003.005.002-0-unknown

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
subdev_spec.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2010 Ettus Research LLC
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 //
17
18 #ifndef INCLUDED_UHD_USRP_SUBDEV_SPEC_HPP
19 #define INCLUDED_UHD_USRP_SUBDEV_SPEC_HPP
20
21 #include <uhd/config.hpp>
22 #include <boost/operators.hpp>
23 #include <vector>
24 #include <string>
25
26 namespace uhd{ namespace usrp{
27
31 struct UHD_API subdev_spec_pair_t : boost::equality_comparable<subdev_spec_pair_t>{
33 std::string db_name;
34
36 std::string sd_name;
37
43 subdev_spec_pair_t(
44 const std::string &db_name = "",
45 const std::string &sd_name = ""
46 );
47 };
48
50 UHD_API bool operator==(const subdev_spec_pair_t &, const subdev_spec_pair_t &);
51
66 class UHD_API subdev_spec_t : public std::vector<subdev_spec_pair_t>{
67 public:
68
73 subdev_spec_t(const std::string &markup = "");
74
79 std::string to_pp_string(void) const;
80
86 std::string to_string(void) const;
87 };
88
89 }}
90
91 #endif /* INCLUDED_UHD_USRP_SUBDEV_SPEC_HPP */
uhd::usrp::subdev_spec_pair_t::db_name
std::string db_name
The daughterboard slot name.
Definition: subdev_spec.hpp:33
uhd::usrp::subdev_spec_pair_t::sd_name
std::string sd_name
The subdevice name.
Definition: subdev_spec.hpp:36
uhd::usrp::operator==
UHD_API bool operator==(const dboard_id_t &lhs, const dboard_id_t &rhs)
config.hpp
UHD_API
#define UHD_API
Definition: config.hpp:76
uhd::usrp::subdev_spec_pair_t
Definition: subdev_spec.hpp:31
uhd::usrp::subdev_spec_t
Definition: subdev_spec.hpp:66