#include <pathsearch.h>
|
static string | find (Kind kind, const string &name) |
|
static string | findInclude (const string &name) |
|
static string | findModule (string name, bool the_source=false) |
|
static void | addPath (Kind kind, const string &path) |
|
static void | clearPaths (Kind kind) |
|
static void | initialize () |
|
static std::list< string >::const_iterator | searchListBegin (Kind kind) |
| Perl needs to synchronize its search paths with ours (#39512) More...
|
|
static std::list< string >::const_iterator | searchListEnd (Kind kind) |
| Perl needs to synchronize its search paths with ours (#39512) More...
|
|
static string | bytecodeForFile (string file) |
|
static int | numberOfComponentLevels () |
|
static string | searchPath (WHAT what, int level) |
|
static int | currentComponentLevel () |
|
static string | findy2 (string filename, int mode=R_OK, int level=-1) |
|
static string | findy2exe (string root, string compname, bool server, bool non_y2, int level) |
|
static string | findy2plugin (string name, int level) |
|
static string | globsubst (const string &where, const string &oldstr, const string &newstr) |
| globsubst ("YaST::Foo::UI", "::", "/") == "YaST/Foo/UI" More...
|
|
static string | completeFilename (const string &fname) |
|
A straightforward path search. It should eventually replace the complex interplay of Y2PathSearch and Y2ComponentBroker, Y2ComponentCreator.
Enumerator |
---|
Client |
|
Include |
|
Module |
|
num_Kind |
|
void YCPPathSearch::addPath |
( |
Kind |
kind, |
|
|
const string & |
path |
|
) |
| |
|
static |
prepends a path to the search list
- Parameters
-
kind,kind | of files to find in path |
path,string | path to directory |
References path.
Referenced by main().
string YCPPathSearch::bytecodeForFile |
( |
string |
file | ) |
|
|
static |
Search for a YBC file corresponding to the given YCP file. It also checks, if the YBC file is newer than the YCP.
- Parameters
-
file | the YCP file for which YBC file should be found |
- Returns
- YBC file name or empty string if no YBC file was found
References y2debug.
Referenced by Y2CCWFM::createInLevel().
void YCPPathSearch::clearPaths |
( |
Kind |
kind | ) |
|
|
static |
clears the specified search list
- Parameters
-
kind,kind | fo pathes to clear used for '–nostdmodules' and '–nostdincludes' in ycpc |
Referenced by main().
string YCPPathSearch::find |
( |
Kind |
kind, |
|
|
const string & |
name |
|
) |
| |
|
static |
string YCPPathSearch::findInclude |
( |
const string & |
name | ) |
|
|
static |
string YCPPathSearch::findModule |
( |
string |
name, |
|
|
bool |
the_source = false |
|
) |
| |
|
static |
void YCPPathSearch::initialize |
( |
| ) |
|
|
static |
Initializes the search paths if not done already. Called automatically in each find.
Referenced by main().
void YCPPathSearch::initialize |
( |
Kind |
kind, |
|
|
const char * |
suffix |
|
) |
| |
|
staticprivate |
std::list< string >::const_iterator YCPPathSearch::searchListBegin |
( |
Kind |
kind | ) |
|
|
static |
Perl needs to synchronize its search paths with ours (#39512)
Referenced by main().
std::list< string >::const_iterator YCPPathSearch::searchListEnd |
( |
Kind |
kind | ) |
|
|
static |
Perl needs to synchronize its search paths with ours (#39512)
Referenced by main().
bool YCPPathSearch::initialized = false |
|
staticprivate |
std::list< string > YCPPathSearch::searchList |
|
staticprivate |
The documentation for this class was generated from the following files: