libzypp
17.24.2
RepoMirrorList.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
9
10
#ifndef ZYPP_REPO_MIRRORLIST_H_
11
#define ZYPP_REPO_MIRRORLIST_H_
12
13
#include <vector>
14
#include <
zypp/Url.h
>
15
#include <
zypp/Pathname.h
>
16
17
namespace
zypp
18
{
19
namespace
repo
20
{
21
class
RepoMirrorList
22
{
23
public
:
24
RepoMirrorList
(
const
Url
& url_r,
const
Pathname
& metadatapath_r,
bool
mirrorListForceMetalink_r );
25
26
RepoMirrorList
(
const
Url
& url_r )
27
:
RepoMirrorList
( url_r,
Pathname
(), false )
28
{}
29
30
const
std::vector<Url> &
getUrls
()
const
31
{
return
_urls
; }
32
33
std::vector<Url> &
getUrls
()
34
{
return
_urls
; }
35
36
private
:
37
std::vector<Url>
_urls
;
38
};
39
}
// ns repo
40
}
// ns zypp
41
42
#endif
43
44
// vim: set ts=2 sts=2 sw=2 et ai:
zypp::repo::RepoMirrorList::getUrls
const std::vector< Url > & getUrls() const
Definition:
RepoMirrorList.h:30
zypp::repo::RepoMirrorList::RepoMirrorList
RepoMirrorList(const Url &url_r)
Definition:
RepoMirrorList.h:26
zypp::repo::RepoMirrorList::getUrls
std::vector< Url > & getUrls()
Definition:
RepoMirrorList.h:33
zypp::repo::RepoMirrorList
Definition:
RepoMirrorList.h:22
Pathname.h
Url.h
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition:
CodePitfalls.doc:2
zypp::repo::RepoMirrorList::RepoMirrorList
RepoMirrorList(const Url &url_r, const Pathname &metadatapath_r, bool mirrorListForceMetalink_r)
Definition:
RepoMirrorList.cc:126
zypp::repo::RepoMirrorList::_urls
std::vector< Url > _urls
Definition:
RepoMirrorList.h:37
zypp::filesystem::Pathname
Pathname.
Definition:
Pathname.h:45
zypp::Url
Url manipulation class.
Definition:
Url.h:88
zypp
repo
RepoMirrorList.h
Generated by
1.8.18