file-explorer.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2016-2020 CNRS INRIA
3 //
4 
5 #ifndef __pinocchio_utils_file_explorer_hpp__
6 #define __pinocchio_utils_file_explorer_hpp__
7 
8 #include <string>
9 #include <vector>
10 
11 #include "pinocchio/config.hpp"
12 
13 namespace pinocchio
14 {
15 
24  PINOCCHIO_DLLAPI std::vector<std::string>
25  extractPathFromEnvVar(const std::string & env_var_name,
26  const std::string & delimiter = ":");
27 
28 
36  PINOCCHIO_DLLAPI void
37  extractPathFromEnvVar(const std::string & env_var_name,
38  std::vector<std::string> & list_of_paths,
39  const std::string & delimiter = ":");
40 
41 
47  PINOCCHIO_DLLAPI std::vector<std::string> rosPaths();
48 
49 }
50 
51 #endif // __pinocchio_utils_file_explorer_hpp__
void extractPathFromEnvVar(const std::string &env_var_name, std::vector< std::string > &list_of_paths, const std::string &delimiter)
Parse an environment variable if exists and extract paths according to the delimiter.
std::vector< std::string > rosPaths()
Parse the environment variable ROS_PACKAGE_PATH and extract paths.
Main pinocchio namespace.
Definition: timings.cpp:30


pinocchio
Author(s):
autogenerated on Tue Jun 1 2021 02:45:02