Loading...
Searching...
No Matches
subdev_spec.hpp
Go to the documentation of this file.
//
// Copyright 2010 Ettus Research LLC
// Copyright 2018 Ettus Research, a National Instruments Company
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#pragma once
#include <uhd/config.hpp>
#include <boost/operators.hpp>
#include <string>
#include <vector>
namespace uhd { namespace usrp {
struct UHD_API subdev_spec_pair_t : boost::equality_comparable<subdev_spec_pair_t>
{
std::string db_name;
std::string sd_name;
subdev_spec_pair_t(const std::string& db_name = "", const std::string& sd_name = "");
bool operator==(const subdev_spec_pair_t& other);
bool operator!=(const subdev_spec_pair_t& other);
};
UHD_API bool operator==(const subdev_spec_pair_t&, const subdev_spec_pair_t&);
class UHD_API subdev_spec_t : public std::vector<subdev_spec_pair_t>
{
public:
subdev_spec_t(const std::string& markup = "");
std::string to_pp_string(void) const;
std::string to_string(void) const;
};
}} // namespace uhd::usrp
uhd::usrp::subdev_spec_t::subdev_spec_t
subdev_spec_t(const std::string &markup="")
uhd::usrp::subdev_spec_t::to_string
std::string to_string(void) const
uhd::usrp::subdev_spec_t::to_pp_string
std::string to_pp_string(void) const
UHD_API
#define UHD_API
Definition config.h:87
config.hpp
uhd::usrp
Definition container.hpp:15
uhd::usrp::operator==
UHD_API bool operator==(const dboard_id_t &lhs, const dboard_id_t &rhs)
uhd
Definition build_info.hpp:12
uhd::usrp::subdev_spec_pair_t
Definition subdev_spec.hpp:21
uhd::usrp::subdev_spec_pair_t::sd_name
std::string sd_name
The subdevice name.
Definition subdev_spec.hpp:26
uhd::usrp::subdev_spec_pair_t::operator==
bool operator==(const subdev_spec_pair_t &other)
overloaded equality operator
uhd::usrp::subdev_spec_pair_t::subdev_spec_pair_t
subdev_spec_pair_t(const std::string &db_name="", const std::string &sd_name="")
uhd::usrp::subdev_spec_pair_t::db_name
std::string db_name
The daughterboard slot name.
Definition subdev_spec.hpp:23
uhd::usrp::subdev_spec_pair_t::operator!=
bool operator!=(const subdev_spec_pair_t &other)
overloaded inquality operator