Sleeping Wombat Common Library
0.50.0
swCommonLibrary
|
Simple class for resolving paths on Linux/Windows/Mac OS. More...
#include <resolver.h>
Public Types | |
typedef std::vector< path_impl >::iterator | iterator |
typedef std::vector< path_impl >::const_iterator | const_iterator |
Public Member Functions | |
size_t | size () const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
void | erase (iterator it) |
void | prepend (const path_impl &path) |
void | append (const path_impl &path) |
const path_impl & | operator[] (size_t index) const |
path_impl & | operator[] (size_t index) |
path_impl | resolve (const path_impl &value) const |
Private Attributes | |
std::vector< path_impl > | m_paths |
Friends | |
std::ostream & | operator<< (std::ostream &os, const resolver &r) |
Simple class for resolving paths on Linux/Windows/Mac OS.
This convenience class looks for a file or directory given its name and a set of search paths. The implementation walks through the search paths in order and stops once the file is found.