USRP Hardware Driver and USRP Manual  Version: 003.010.000.HEAD-0-g6e1ac3fc
UHD and USRP Manual
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 
44  const std::string &db_name = "",
45  const std::string &sd_name = ""
46  );
47  };
48 
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 */
std::string db_name
The daughterboard slot name.
Definition: subdev_spec.hpp:33
std::string sd_name
The subdevice name.
Definition: subdev_spec.hpp:36
UHD_API bool operator==(const dboard_id_t &lhs, const dboard_id_t &rhs)
Definition: build_info.hpp:25
Definition: subdev_spec.hpp:31
#define UHD_API
Definition: config.h:73
Definition: subdev_spec.hpp:66