Drake
find_resource.h File Reference
#include <string>
#include <vector>
#include "drake/common/drake_assert.h"
#include "drake/common/drake_copyable.h"
#include "drake/common/drake_optional.h"
Include dependency graph for find_resource.h:

Go to the source code of this file.

Classes

class  FindResourceResult
 Models the outcome of drake::FindResource. More...
 

Namespaces

 drake
 

Functions

void AddResourceSearchPath (std::string root_directory)
 Adds a path in which resources are searched in a persistent variable. More...
 
std::vector< string > GetResourceSearchPaths ()
 Gets current root directory value from a persistent variable. More...
 
Result FindResource (std::string resource_path)
 Attempts to locate a Drake resource named by the given resource_path. More...
 
std::string FindResourceOrThrow (std::string resource_path)
 Convenient wrapper for querying FindResource(resource_path) followed by FindResourceResult::get_absolute_path_or_throw(). More...