libyui  3.0.10
YPath Class Reference

#include <YPath.h>

List of all members.

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.

Definition at line 43 of file YPath.h.


Constructor & Destructor Documentation

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.

Definition at line 47 of file YPath.cc.

Here is the call graph for this function:

Destructor

Definition at line 126 of file YPath.cc.


Member Function Documentation

std::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.

Definition at line 176 of file YPath.cc.

std::string YPath::path ( )

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

Definition at line 171 of file YPath.cc.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Friends