libzypp
17.31.23
KeyContext.h
Go to the documentation of this file.
1
#ifndef KEYCONTEXT_H_
2
#define KEYCONTEXT_H_
3
4
#include <
zypp/RepoInfo.h
>
5
6
namespace
zypp
{
7
8
struct
KeyContext
9
{
10
public
:
11
KeyContext
(){}
12
KeyContext
(
const
RepoInfo
& repoinfo ) :
_repoInfo
( repoinfo ) {}
13
15
bool
empty
()
const
{
return
_repoInfo
.
alias
().empty(); }
16
17
public
:
18
const
RepoInfo
repoInfo
()
const
{
return
_repoInfo
; }
19
void
setRepoInfo
(
const
RepoInfo
& repoinfo) {
_repoInfo
= repoinfo; }
20
21
private
:
22
RepoInfo
_repoInfo
;
23
};
24
25
}
26
27
#endif
/*KEYCONTEXT_H_*/
RepoInfo.h
zypp::RepoInfo
What is known about a repository.
Definition:
RepoInfo.h:72
zypp::repo::RepoInfoBase::alias
std::string alias() const
unique identifier for this source.
Definition:
RepoInfoBase.cc:111
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition:
CodePitfalls.doc:2
zypp::KeyContext
Definition:
KeyContext.h:9
zypp::KeyContext::setRepoInfo
void setRepoInfo(const RepoInfo &repoinfo)
Definition:
KeyContext.h:19
zypp::KeyContext::KeyContext
KeyContext(const RepoInfo &repoinfo)
Definition:
KeyContext.h:12
zypp::KeyContext::repoInfo
const RepoInfo repoInfo() const
Definition:
KeyContext.h:18
zypp::KeyContext::empty
bool empty() const
Is the context unknown?
Definition:
KeyContext.h:15
zypp::KeyContext::_repoInfo
RepoInfo _repoInfo
Definition:
KeyContext.h:22
zypp::KeyContext::KeyContext
KeyContext()
Definition:
KeyContext.h:11
zypp
KeyContext.h
Generated by
1.9.6