USRP Hardware Driver and USRP Manual  Version: 3.11.0.HEAD-0-gdca39145
UHD and USRP Manual
paths.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2011-2012,2015 Ettus Research LLC
3 //
4 // SPDX-License-Identifier: GPL-3.0
5 //
6 
7 #ifndef INCLUDED_UHD_UTILS_PATHS_HPP
8 #define INCLUDED_UHD_UTILS_PATHS_HPP
9 
10 #include <uhd/config.hpp>
11 
12 #include <boost/filesystem.hpp>
13 
14 #include <string>
15 #include <vector>
16 
17 namespace fs = boost::filesystem;
18 
19 namespace uhd {
20 
22  UHD_API std::string get_tmp_path(void);
23 
25  UHD_API std::string get_app_path(void);
26 
28  UHD_API std::string get_pkg_path(void);
29 
31  UHD_API std::vector<fs::path> get_module_paths(void);
32 
50  UHD_API std::string get_images_dir(const std::string &search_paths);
51 
64  UHD_API std::string find_image_path(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(const std::string &name, const std::string &args = "");
80 } //namespace uhd
81 
82 #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:62
UHD_API std::string find_image_path(const std::string &image_name, const std::string &search_paths="")