libzypp 17.37.17
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
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 {
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
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition Arch.h:247
bool deserialize(const std::string &str_r, DownloadMode &result_r)
DownloadMode
Supported commit download policies.
@ DownloadInHeaps
@ DownloadOnly
@ DownloadAsNeeded
@ DownloadInAdvance
@ DownloadDefault
libzypp will decide what to do.