USRP Hardware Driver and USRP Manual  Version: 3.15.0.HEAD-0-g6563c537
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 #include <boost/filesystem.hpp>
13 #include <string>
14 #include <vector>
15 
16 namespace fs = boost::filesystem;
17 
18 namespace uhd {
19 
21 UHD_API std::string get_tmp_path(void);
22 
24 UHD_API std::string get_app_path(void);
25 
27 UHD_API std::string get_pkg_path(void);
28 
30 UHD_API std::vector<fs::path> get_module_paths(void);
31 
49 UHD_API std::string get_images_dir(const std::string& search_paths);
50 
63 UHD_API std::string find_image_path(
64  const std::string& image_name, const std::string& search_paths = "");
65 
72 UHD_API std::string find_utility(const std::string& name);
73 
79 UHD_API std::string print_utility_error(
80  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:13
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:68
UHD_API std::string find_image_path(const std::string &image_name, const std::string &search_paths="")