libyui  2.42.5
 All Classes Functions Variables Enumerations Friends
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.

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.

YPath::~YPath ( )

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: