Cortex  10.0.0-a4
Public Member Functions | Public Attributes | List of all members
IECore::SearchPath Class Reference

#include <SearchPath.h>

Public Member Functions

 SearchPath ()
 Constructs with an empty paths list.
 
 SearchPath (const std::string &paths, const std::string &separators)
 Calls setPaths() with paths and separators.
 
bool operator== (const SearchPath &s) const
 
bool operator!= (const SearchPath &s) const
 
void setPaths (const std::string &paths, const std::string &separators)
 Sets paths by tokenizing the paths string according to the separators specified.
 
std::string getPaths (const std::string &separator) const
 Returns the paths concatenated together by separator.
 
boost::filesystem::path find (const boost::filesystem::path &file) const
 

Public Attributes

std::list< boost::filesystem::path > paths
 A list of paths to search on. This is public and can be manipulated at will.
 

Detailed Description

The SearchPath class provides a simple means of finding a file on a set of searchpaths.

Member Function Documentation

boost::filesystem::path IECore::SearchPath::find ( const boost::filesystem::path &  file) const

Tries to find the specified file on the paths defined in the paths public member. Use result.empty() to determine failure.


The documentation for this class was generated from the following file: