gz/common/SystemPaths.hh
void SetFindFileURICallback(std::function< std::string(const std::string &)> _cb)
Set the callback to use when ignition can't find a file uri. The callback should return a complete pa...
Forward declarations for the common classes.
STL class.
void AddFilePaths(const std::string &_path)
Add colon (semicolon on windows) delimited paths to find files. These paths will be used with the Fin...
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
Microsoft Visual Studio does not automatically export the interface information for member variables ...
Definition: gz/common/SuppressWarning.hh:65
STL class.
STL class.
std::string FindFileURI(const std::string &_uri) const
Find a file or path using a URI.
static std::string NormalizeDirectoryPath(const std::string &_path)
Format the directory path to use "/" as a separator with "/" at the end.
static std::list< std::string > PathsFromEnv(const std::string &_env)
Return all paths given by an environment variable.
void SetFindFileCallback(std::function< std::string(const std::string &)> _cb)
Set the callback to use when ignition can't find a file. The callback should return a complete path t...
std::string LogPath() const
Get the log path. If IGN_LOG_PATH environment variable is set, then this path is used....
void AddFindFileCallback(std::function< std::string(const std::string &)> _cb)
Add a callback to use when FindFile() can't find a file. The callback should return a full local path...
static char Delimiter()
Get the delimiter that the current operating system uses to separate different paths from each other.
void AddPluginPaths(const std::string &_path)
Add colon (semicolon on windows) delimited paths to plugins.
std::string FindFile(const std::string &_filename, const bool _searchLocalPath=true) const
Find a file in the set search paths (not recursive)
Functions to handle getting system paths, keeps track of:
Definition: gz/common/SystemPaths.hh:51
const std::list< std::string > & PluginPaths()
Get the plugin paths.
std::string FindSharedLibrary(const std::string &_libName)
Find a shared library by name in the plugin paths.
void SetFilePathEnv(const std::string &_env)
Set the file path environment variable to use, and clears any previously set file paths....
std::string FilePathEnv() const
Get the file path environment variable in use. The environment variable contains a set of colon (semi...
void ClearPluginPaths()
clear out SystemPaths::pluginPaths
void AddFindFileURICallback(std::function< std::string(const ignition::common::URI &)> _cb)
Add a callback to use when FindFileURI() can't find a file. The callback should return a full local p...
void AddSearchPathSuffix(const std::string &_suffix)
add _suffix to the list of path search suffixes
static std::string LocateLocalFile(const std::string &_filename, const std::vector< std::string > &_paths)
look for a file in a set of search paths (not recursive) \description This method checks if a file ex...
void SetPluginPathEnv(const std::string &_env)
Set the plugin path environment variable to use.
const std::list< std::string > & FilePaths()
Get the file paths.
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
Definition: gz/common/SuppressWarning.hh:68