libzypp  10.5.0
zypp::RepoManager::Impl Struct Reference

RepoManager implementation. More...

List of all members.

Public Member Functions

 Impl (const RepoManagerOptions &opt)
void saveService (ServiceInfo &service) const
Pathname generateNonExistingName (const Pathname &dir, const std::string &basefilename) const
 Generate a non existing filename in a directory, using a base name.
std::string generateFilename (const RepoInfo &info) const
 Generate a related filename from a repo info.
std::string generateFilename (const ServiceInfo &info) const

Public Attributes

RepoManagerOptions options
RepoSet repos
ServiceSet services

Private Member Functions

void init_knownServices ()
void init_knownRepositories ()
Implclone () const
 clone for RWCOW_pointer

Friends

ImplrwcowClone (const Impl *rhs)

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const RepoManager::Impl &obj)

Detailed Description

RepoManager implementation.

Definition at line 401 of file RepoManager.cc.


Constructor & Destructor Documentation

zypp::RepoManager::Impl::Impl ( const RepoManagerOptions opt) [inline]

Definition at line 403 of file RepoManager.cc.


Member Function Documentation

void zypp::RepoManager::Impl::saveService ( ServiceInfo service) const

Definition at line 449 of file RepoManager.cc.

Pathname zypp::RepoManager::Impl::generateNonExistingName ( const Pathname &  dir,
const std::string &  basefilename 
) const

Generate a non existing filename in a directory, using a base name.

For example if a directory contains 3 files

|-- bar |-- foo `-- moo

If you try to generate a unique filename for this directory, based on "ruu" you will get "ruu", but if you use the base "foo" you will get "foo_1"

Parameters:
dirDirectory where the file needs to be unique
basefilenamestring to base the filename on.

Definition at line 483 of file RepoManager.cc.

std::string zypp::RepoManager::Impl::generateFilename ( const RepoInfo info) const

Generate a related filename from a repo info.

From a repo info, it will try to use the alias as a filename escaping it if necessary. Other fallbacks can be added to this function in case there is no way to use the alias

Definition at line 505 of file RepoManager.cc.

std::string zypp::RepoManager::Impl::generateFilename ( const ServiceInfo info) const

Definition at line 516 of file RepoManager.cc.

void zypp::RepoManager::Impl::init_knownServices ( ) [private]

Definition at line 528 of file RepoManager.cc.

void zypp::RepoManager::Impl::init_knownRepositories ( ) [private]

Definition at line 550 of file RepoManager.cc.

Impl* zypp::RepoManager::Impl::clone ( ) const [inline, private]

clone for RWCOW_pointer

Definition at line 435 of file RepoManager.cc.


Friends And Related Function Documentation

Impl* rwcowClone ( const Impl rhs) [friend]
std::ostream & operator<< ( std::ostream &  str,
const RepoManager::Impl obj 
) [related]

Stream output

Definition at line 442 of file RepoManager.cc.


Member Data Documentation


The documentation for this struct was generated from the following file: