libzypp 17.38.7
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
38
44 bool deserialize( const std::string & str_r, DownloadMode & result_r );
45
50 inline DownloadMode deserializeDownloadMode( const std::string & str_r )
51 {
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
Provides API related macros.
#define ZYPP_API
Definition Globals.h:69
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
DownloadMode deserializeDownloadMode(const std::string &str_r)
relates: DownloadMode Parse from string.
bool deserialize(const std::string &str_r, DownloadMode &result_r)
relates: DownloadMode Parse from string.
std::ostream & operator<<(std::ostream &str, const Capabilities &obj)
relates: Capabilities Stream output
DownloadMode
Supported commit download policies.
@ DownloadInHeaps
@ DownloadOnly
@ DownloadAsNeeded
@ DownloadInAdvance
@ DownloadDefault
libzypp will decide what to do.