Drake
find_resource.cc File Reference
#include "drake/common/find_resource.h"
#include <cstdlib>
#include <utility>
#include <vector>
#include <spruce.hh>
#include "drake/common/drake_throw.h"
#include "drake/common/never_destroyed.h"
Include dependency graph for find_resource.cc:

Namespaces

 drake
 

Typedefs

using Result = FindResourceResult
 

Functions

std::vector< string > GetResourceSearchPaths ()
 Gets current root directory value from a persistent variable. More...
 
void AddResourceSearchPath (std::string root_directory)
 Adds a path in which resources are searched in 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...
 

Variables

const char *const kDrakeResourceRootEnvironmentVariableName
 The name of the environment variable that provides the first place where FindResource attempts to look. More...