Sleeping Wombat Common Library  0.50.0
swCommonLibrary
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
resolver Class Reference

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_imploperator[] (size_t index) const
 
path_imploperator[] (size_t index)
 
path_impl resolve (const path_impl &value) const
 

Private Attributes

std::vector< path_implm_paths
 

Friends

std::ostream & operator<< (std::ostream &os, const resolver &r)
 

Detailed Description

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.


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