libzypp: zypp/DownloadMode.h Source File

libzypp 17.25.10

DownloadMode.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_DOWNLOADMODE_H
13 #define ZYPP_DOWNLOADMODE_H
14
15 #include <iosfwd>
16
18 namespace zypp
19 {
20
22 enum DownloadMode
23 {
24 DownloadDefault,
25 DownloadOnly,
27 DownloadInAdvance,
29 DownloadInHeaps,
32 DownloadAsNeeded
35 };
36
42 bool deserialize( const std::string & str_r, DownloadMode & result_r );
43
48 inline DownloadMode deserializeDownloadMode( const std::string & str_r )
49 {
50 DownloadMode ret( DownloadDefault );
51 deserialize( str_r, ret );
52 return ret;
53 }
54
56 std::ostream & operator<<( std::ostream & str, DownloadMode obj );
57
59 } // namespace zypp
61 #endif // ZYPP_DOWNLOADMODE_H
str
String related utilities and Regular expression matching.
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
zypp::operator<<
std::ostream & operator<<(std::ostream &str, const Exception &obj)
Definition: Exception.cc:147
zypp::deserialize
bool deserialize(const std::string &str_r, DownloadMode &result_r)
Definition: DownloadMode.cc:23
zypp::DownloadMode
DownloadMode
Supported commit download policies.
Definition: DownloadMode.h:23
zypp::DownloadInHeaps
@ DownloadInHeaps
Similar to DownloadInAdvance, but try to split the transaction into heaps, where at the end of each h...
Definition: DownloadMode.h:29
zypp::DownloadOnly
@ DownloadOnly
Just download all packages to the local cache.
Definition: DownloadMode.h:25
zypp::DownloadAsNeeded
@ DownloadAsNeeded
Alternating download and install.
Definition: DownloadMode.h:32
zypp::DownloadInAdvance
@ DownloadInAdvance
First download all packages to the local cache.
Definition: DownloadMode.h:27
zypp::DownloadDefault
@ DownloadDefault
libzypp will decide what to do.
Definition: DownloadMode.h:24