#include <YPath.h>
Public Member Functions | |
| YPath (const std::string &directory, const std::string &filename) | |
| ~YPath () | |
| std::string | path () |
| std::string | dir () |
Finds files (e.g. plugins or theme pixmaps) recursively inside a directory.
| YPath::YPath | ( | const std::string & | directory, |
| const std::string & | filename ) |
Constructor
to be called with the directory where to look inside and filename which to lookup.
YSettings::progSubDir will be preferred by the lookup.
| YPath::~YPath | ( | ) |
Destructor
| string YPath::dir | ( | ) |
Returns the directory where the file is found; if not found just the subdir part (if there's any) of the filename given in constructor.
| string YPath::path | ( | ) |
Returns the full path of the file if found; if not found just the filename given in constructor.