blob: 27e8d888df6a114a0ce58c157dff03eb498baae5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
class Repository : private base::SafeBool<Repository>
{
public:
typedef repo::RepositoryImpl Impl;
typedef repo::RepositoryImpl_Ptr Impl_Ptr;
public:
/**
* \short Default ctor: noRepository.
* \see RepoManager::createFromCache.
*/
Repository();
/** \short Factory ctor taking a RepositoryImpl.
* This is quite low level. You usually want to use RepoManager to
* manage the repositories.
* \see RepoManager
*/
explicit
Repository( const Impl_Ptr & impl_r );
/** \short Factory ctor taking a RepositoryImpl.
*/
explicit
Repository( const RepoInfo & info_r );
/**
* A dummy Repository (Id \c 0) providing nothing, doing nothing.
*/
static const Repository noRepository;
/** Validate Repository in a boolean context.
* \c FALSE iff == noRepository.
*/
//using base::SafeBool<Repository>::operator bool_type;
public:
typedef unsigned long NumericId;
/** Runtime unique numeric Repository Id. */
NumericId numericId() const;
/**
* \short Repository info used to create this repository
*/
const RepoInfo & info() const;
/**
* \short Patch RPMs the repository provides
*/
const std::list<packagedelta::PatchRpm> & patchRpms() const;
/**
* \short Delta RPMs the repository provides
*/
const std::list<packagedelta::DeltaRpm> & deltaRpms() const;
};
|