libzypp 17.37.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
17#include <zypp/Globals.h>
18
20 namespace zypp
21{
22
24 enum DownloadMode
25 {
26 DownloadDefault,
27 DownloadOnly,
29 DownloadInAdvance,
31 DownloadInHeaps,
34 DownloadAsNeeded
37 };
38
44 bool deserialize( const std::string & str_r, DownloadMode & result_r );
45
50 inline DownloadMode deserializeDownloadMode( const std::string & str_r )
51 {
52 DownloadMode ret( DownloadDefault );
53 deserialize( str_r, ret );
54 return ret;
55 }
56
58 std::ostream & operator<<( std::ostream & str, DownloadMode obj ) ZYPP_API;
59
61} // namespace zypp
63#endif // ZYPP_DOWNLOADMODE_H
zypp::str
String related utilities and Regular expression matching.
Definition PurgeKernels.h:19
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20
zypp::operator<<
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
Definition SerialNumber.cc:52
zypp::ZYPP_API
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition Arch.h:247
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:25
zypp::DownloadInHeaps
@ DownloadInHeaps
Definition DownloadMode.h:31
zypp::DownloadOnly
@ DownloadOnly
Definition DownloadMode.h:27
zypp::DownloadAsNeeded
@ DownloadAsNeeded
Definition DownloadMode.h:34
zypp::DownloadInAdvance
@ DownloadInAdvance
Definition DownloadMode.h:29
zypp::DownloadDefault
@ DownloadDefault
libzypp will decide what to do.
Definition DownloadMode.h:26
Globals.h