libzypp: zypp/DownloadMode.h Source File

libzypp 17.38.9

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-core/Globals.h>
18
20namespace 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
Globals.h
Provides API related macros.
ZYPP_API
#define ZYPP_API
Definition Globals.h:69
str
String related utilities and Regular expression matching.
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2
zypp::deserializeDownloadMode
DownloadMode deserializeDownloadMode(const std::string &str_r)
relates: DownloadMode Parse from string.
Definition DownloadMode.h:50
zypp::deserialize
bool deserialize(const std::string &str_r, DownloadMode &result_r)
relates: DownloadMode Parse from string.
Definition DownloadMode.cc:23
zypp::operator<<
std::ostream & operator<<(std::ostream &str, const Capabilities &obj)
relates: Capabilities Stream output
Definition Capabilities.cc:65
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