// // Copyright 2020 Ettus Research, a National Instruments Brand // // SPDX-License-Identifier: GPL-3.0-or-later // #include #include #include #include namespace uhd { namespace features { std::vector discoverable_feature_registry::enumerate_features() { std::vector features; for (auto& entry : _features) { features.push_back(entry.second->get_feature_name()); } return features; } discoverable_feature::sptr discoverable_feature_registry::get_feature_ptr( discoverable_feature::feature_id_t feature_id) { auto it = _features.find(feature_id); if (it == _features.end()) { return discoverable_feature::sptr(); } return it->second; } }} // namespace uhd::features