USRP Hardware Driver and USRP Manual  Version: 4.4.0.HEAD-0-g5fac246b
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::get_tmp_path
UHD_API std::string get_tmp_path(void)
Get a string representing the system's temporary directory.
config.hpp
UHD_API
#define UHD_API
Definition: config.h:87
uhd::find_image_path
UHD_API std::string find_image_path(const std::string &image_name, const std::string &search_paths="")
uhd::get_pkg_path
UHD_API std::string get_pkg_path(void)
Get a string representing the system's pkg directory.
uhd
Definition: build_info.hpp:12
uhd::print_utility_error
UHD_API std::string print_utility_error(const std::string &name, const std::string &args="")
uhd::get_lib_path
UHD_API std::string get_lib_path(void)
Get a string representing the system's library directory.
uhd::get_module_paths
UHD_API std::vector< fs::path > get_module_paths(void)
Get UHD library paths.
uhd::find_utility
UHD_API std::string find_utility(const std::string &name)
uhd::get_cal_data_path
UHD_API std::string get_cal_data_path(void)
Get a string representing the location of the calibration database.
uhd::get_images_dir
UHD_API std::string get_images_dir(const std::string &search_paths)