|
USRP Hardware Driver and USRP Manual
Version: 4.4.0.HEAD-0-g5fac246b
UHD and USRP Manual
|
|
Go to the documentation of this file.
48 const std::string& block_name,
49 const size_t block_ctr = 0);
52 std::string to_string()
const;
64 static bool is_valid_blockname(
const std::string& block_name);
77 static bool is_valid_block_id(
const std::string& block_id);
85 bool match(
const std::string& block_str);
90 std::string
get()
const
96 std::string get_local()
const;
123 bool set(
const std::string& new_name);
128 bool set(
const size_t device_no,
129 const std::string& block_name,
130 const size_t block_ctr = 0);
135 _device_no = device_no;
139 bool set_block_name(
const std::string& block_name);
165 return not(*
this == block_id);
191 return get() == block_id_str;
197 std::string comp = std::string(block_id_str);
198 return *
this == comp;
202 operator std::string()
const
223 std::string _block_name;
block_id_t operator=(const std::string &new_name)
Assignment: Works like set(std::string)
Definition: block_id.hpp:150
Definition: block_id.hpp:39
void set_device_no(size_t device_no)
Set the device number.
Definition: block_id.hpp:133
std::string get_block_name() const
Return block name.
Definition: block_id.hpp:114
std::ostream & operator<<(std::ostream &out, block_id_t block_id)
Shortcut for << block_id.to_string()
Definition: block_id.hpp:228
std::string to_string() const
Return a string like this: "0/FFT#1" (includes all components, if set)
#define UHD_API
Definition: config.h:87
bool operator==(const char *block_id_str) const
Check if a string matches the entire block ID (not like match())
Definition: block_id.hpp:195
block_id_t operator++(int)
Increment the block count ("FFT#1" -> "FFT_2")
Definition: block_id.hpp:215
std::string get() const
Short for to_string()
Definition: block_id.hpp:90
Definition: build_info.hpp:12
bool operator==(const std::string &block_id_str) const
Check if a string matches the entire block ID (not like match())
Definition: block_id.hpp:189
bool operator==(const block_id_t &block_id) const
Definition: block_id.hpp:156
Definition: property_tree.hpp:204
bool operator>(const block_id_t &block_id) const
Definition: block_id.hpp:178
bool operator!=(const block_id_t &block_id) const
Definition: block_id.hpp:163
void set_block_count(size_t count)
Set the block count.
Definition: block_id.hpp:142
bool operator<(const block_id_t &block_id) const
Definition: block_id.hpp:168
size_t get_device_no() const
Return device number.
Definition: block_id.hpp:102
size_t get_block_count() const
Return block count.
Definition: block_id.hpp:108
block_id_t operator++()
Increment the block count ("FFT#1" -> "FFT_2")
Definition: block_id.hpp:208