rcpputils
master
C++ API providing common utilities and data structures.
include
rcpputils
find_library.hpp
Go to the documentation of this file.
1
// Copyright 2019 Open Source Robotics Foundation, Inc.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
19
#ifndef RCPPUTILS__FIND_LIBRARY_HPP_
20
#define RCPPUTILS__FIND_LIBRARY_HPP_
21
22
#include <string>
23
24
#include "
rcpputils/visibility_control.hpp
"
25
26
namespace
rcpputils
27
{
28
30
42
RCPPUTILS_PUBLIC
43
std::string
find_library_path
(
const
std::string
& library_name);
44
46
52
RCPPUTILS_PUBLIC
53
std::string
path_for_library
(
const
std::string
& directory,
const
std::string
& library_name);
54
56
63
RCPPUTILS_PUBLIC
64
std::string
filename_for_library
(
const
std::string
& library_name);
65
66
}
// namespace rcpputils
67
68
#endif // RCPPUTILS__FIND_LIBRARY_HPP_
std::string
rcpputils
Definition:
asserts.hpp:37
rcpputils::find_library_path
std::string find_library_path(const std::string &library_name)
Find a library located in the OS's specified environment variable for library paths.
rcpputils::path_for_library
std::string path_for_library(const std::string &directory, const std::string &library_name)
Construct the filepath for a library given its directory, and checks that it exists.
rcpputils::filename_for_library
std::string filename_for_library(const std::string &library_name)
Create the filename corresponding to the library name.
visibility_control.hpp
Macros for controlling visibilty of exported iterfaces.
RCPPUTILS_PUBLIC
#define RCPPUTILS_PUBLIC
Declares symbols and functions will be visible for export.
Definition:
visibility_control.hpp:81
Generated by
1.8.17