libyui
 
Loading...
Searching...
No Matches
YPath Class Reference

#include <YPath.h>

Public Member Functions

 YPath (const std::string &directory, const std::string &filename)
 
 ~YPath ()
 
std::string path ()
 
std::string dir ()
 

Detailed Description

Finds files (e.g. plugins or theme pixmaps) recursively inside a directory.

Constructor & Destructor Documentation

◆ YPath()

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::~YPath ( )

Destructor

Member Function Documentation

◆ dir()

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.

◆ path()

string YPath::path ( )

Returns the full path of the file if found; if not found just the filename given in constructor.


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