USRP Hardware Driver and Device Manual Version: 4.11.0.0-0-unknown
UHD and USRP Manual
Loading...
Searching...
No Matches
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 <filesystem>
12#include <string>
13#include <vector>
14
15namespace uhd {
16
25UHD_API std::string get_tmp_path(void);
26
32UHD_API std::string get_lib_path(void);
33
42UHD_API std::string get_pkg_path(void);
43
44
53UHD_API std::string get_pkg_data_path(void);
54
56UHD_API std::string get_cal_data_path(void);
57
63UHD_API std::vector<std::filesystem::path> get_module_paths(void);
64
82UHD_API std::string get_images_dir(const std::string& search_paths);
83
97 const std::string& image_name, const std::string& search_paths = "");
98
105UHD_API std::string find_utility(const std::string& name);
106
113 const std::string& name, const std::string& args = "");
114} // namespace uhd
#define UHD_API
Definition config.h:87
Definition build_info.hpp:12
UHD_API std::vector< std::filesystem::path > get_module_paths(void)
Get UHD library paths.
UHD_API std::string get_pkg_data_path(void)
Get a string representing the system's package data directory ("share").
UHD_API std::string find_image_path(const std::string &image_name, const std::string &search_paths="")
Return the UHD images directory path.
UHD_API std::string get_pkg_path(void)
Get a string representing the system's pkg directory.
UHD_API std::string get_lib_path(void)
Get a string representing the system's library directory.
UHD_API std::string get_cal_data_path(void)
Get a string representing the location of the calibration database.
UHD_API std::string print_utility_error(const std::string &name, const std::string &args="")
Return an error string recommending the user run the utility.
UHD_API std::string find_utility(const std::string &name)
Search for the location of a particular UHD utility.
UHD_API std::string get_tmp_path(void)
Get a string representing the system's temporary directory.