libzypp  10.5.0
zypp::sat::LookupRepoAttr Class Reference

Lightweight repository attribute value lookup. More...

#include <LookupAttr.h>

Inheritance diagram for zypp::sat::LookupRepoAttr:

List of all members.

Public Member Functions

 LookupRepoAttr ()
 LookupRepoAttr (SolvAttr attr_r)
 LookupRepoAttr (SolvAttr attr_r, Repository repo_r)
void setPool ()
void setRepo (Repository repo_r)

Detailed Description

Lightweight repository attribute value lookup.

This is just a convenience class that overloads all LookupAttr methods which take a LookupAttr::Location argument and sets it to REPO_ATTR.

 // look for a repo attribute in the pool:
 sat::LookupAttr     p( sat::SolvAttr::repositoryAddedFileProvides, sat::LookupAttr::REPO_ATTR );

 // Equivalent but using LookupRepoAttr:
 sat::LookupRepoAttr q( sat::SolvAttr::repositoryAddedFileProvides );
See also:
LookupAttr

Definition at line 261 of file LookupAttr.h.


Constructor & Destructor Documentation

zypp::sat::LookupRepoAttr::LookupRepoAttr ( ) [inline]

Default ctor finds nothing.

Definition at line 265 of file LookupAttr.h.

zypp::sat::LookupRepoAttr::LookupRepoAttr ( SolvAttr  attr_r) [inline, explicit]

Definition at line 268 of file LookupAttr.h.

zypp::sat::LookupRepoAttr::LookupRepoAttr ( SolvAttr  attr_r,
Repository  repo_r 
) [explicit]

Definition at line 283 of file LookupAttr.cc.


Member Function Documentation

void zypp::sat::LookupRepoAttr::setPool ( ) [inline]

Set search in Pool (all repositories).

Definition at line 276 of file LookupAttr.h.

void zypp::sat::LookupRepoAttr::setRepo ( Repository  repo_r)

Set search in one Repository.

Definition at line 287 of file LookupAttr.cc.


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