maliput_malidrive
utility Namespace Reference

Functions

std::string GetFileNameFromPath (const std::string &file_path)
 Finds the last occurrence of '/' in file_path and returns the substring from it. More...
 
std::string FindResourceInPath (const std::string &resource_name, const std::string &path_to_resources)
 
std::string FindResourceInEnvPath (const std::string &resource_name, const std::string &path_to_resources)
 
std::string FindResource (const std::string &resource_name)
 

Function Documentation

◆ FindResource()

std::string FindResource ( const std::string &  resource_name)

◆ FindResourceInEnvPath()

std::string FindResourceInEnvPath ( const std::string &  resource_name,
const std::string &  path_to_resources 
)

◆ FindResourceInPath()

std::string FindResourceInPath ( const std::string &  resource_name,
const std::string &  path_to_resources 
)

◆ GetFileNameFromPath()

std::string GetFileNameFromPath ( const std::string &  file_path)

Finds the last occurrence of '/' in file_path and returns the substring from it.

When no '/' is found, file_path is returned.

Parameters
file_pathIs the file path of the file.
Returns
The name of the file pointing by file_path.