USRP Hardware Driver and USRP Manual  Version: 4.6.0.0
UHD and USRP Manual
paths.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2011-2012,2015 Ettus Research LLC
3 // Copyright 2018 Ettus Research, a National Instruments Company
4 //
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 
8 #pragma once
9 
10 #include <uhd/config.hpp>
11 #include <boost/filesystem.hpp>
12 #include <string>
13 #include <vector>
14 
15 namespace fs = boost::filesystem;
16 
17 namespace uhd {
18 
20 UHD_API std::string get_tmp_path(void);
21 
23 UHD_API std::string get_lib_path(void);
24 
26 UHD_API std::string get_pkg_path(void);
27 
29 UHD_API std::string get_cal_data_path(void);
30 
32 UHD_API std::vector<fs::path> get_module_paths(void);
33 
51 UHD_API std::string get_images_dir(const std::string& search_paths);
52 
65 UHD_API std::string find_image_path(
66  const std::string& image_name, const std::string& search_paths = "");
67 
74 UHD_API std::string find_utility(const std::string& name);
75 
81 UHD_API std::string print_utility_error(
82  const std::string& name, const std::string& args = "");
83 } // namespace uhd
UHD_API std::string get_pkg_path(void)
Get a string representing the system&#39;s pkg directory.
UHD_API std::string print_utility_error(const std::string &name, const std::string &args="")
UHD_API std::string get_cal_data_path(void)
Get a string representing the location of the calibration database.
UHD_API std::string find_utility(const std::string &name)
UHD_API std::string get_images_dir(const std::string &search_paths)
UHD_API std::string get_lib_path(void)
Get a string representing the system&#39;s library directory.
Definition: build_info.hpp:12
UHD_API std::vector< fs::path > get_module_paths(void)
Get UHD library paths.
UHD_API std::string get_tmp_path(void)
Get a string representing the system&#39;s temporary directory.
#define UHD_API
Definition: config.h:87
UHD_API std::string find_image_path(const std::string &image_name, const std::string &search_paths="")