USRP Hardware Driver and USRP Manual  Version: 3.11.0.HEAD-0-ga1b5c4ae
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 #ifndef INCLUDED_UHD_UTILS_PATHS_HPP
9 #define INCLUDED_UHD_UTILS_PATHS_HPP
10 
11 #include <uhd/config.hpp>
12 
13 #include <boost/filesystem.hpp>
14 
15 #include <string>
16 #include <vector>
17 
18 namespace fs = boost::filesystem;
19 
20 namespace uhd {
21 
23  UHD_API std::string get_tmp_path(void);
24 
26  UHD_API std::string get_app_path(void);
27 
29  UHD_API std::string get_pkg_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(const std::string &image_name, const std::string &search_paths = "");
66 
73  UHD_API std::string find_utility(const std::string &name);
74 
80  UHD_API std::string print_utility_error(const std::string &name, const std::string &args = "");
81 } //namespace uhd
82 
83 #endif /* INCLUDED_UHD_UTILS_PATHS_HPP */
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 find_utility(const std::string &name)
UHD_API std::string get_images_dir(const std::string &search_paths)
Definition: build_info.hpp:14
UHD_API std::vector< fs::path > get_module_paths(void)
Get UHD library paths.
UHD_API std::string get_app_path(void)
Get a string representing the system&#39;s appdata directory.
UHD_API std::string get_tmp_path(void)
Get a string representing the system&#39;s temporary directory.
#define UHD_API
Definition: config.h:63
UHD_API std::string find_image_path(const std::string &image_name, const std::string &search_paths="")