|
libzypp
15.22.2
|
Derive a numeric priority from Url scheme according to zypp.conf(download.media_preference). More...
#include <MediaPriority.h>
Public Types | |
| typedef int | value_type |
Public Member Functions | |
| MediaPriority () | |
| Default ctor. More... | |
| MediaPriority (value_type val_r) | |
| Copy ctor. More... | |
| MediaPriority (const std::string &scheme_r) | |
| Ctor from scheme string. More... | |
| MediaPriority (const Url &url_r) | |
| Ctor from scheme string defined by Url. More... | |
| MediaPriority & | operator= (value_type rhs) |
| Assign. More... | |
| MediaPriority & | operator= (const std::string &scheme_r) |
| Assign priority of scheme string. More... | |
| MediaPriority & | operator= (const Url &url_r) |
| Assign priority of scheme string defined by Url. More... | |
| value_type & | get () |
| Conversion to value_type. More... | |
| const value_type & | get () const |
| Explicit. More... | |
| operator value_type & () | |
| Implicit. More... | |
| operator const value_type & () const | |
| Implicit. More... | |
Private Attributes | |
| value_type | _val |
Derive a numeric priority from Url scheme according to zypp.conf(download.media_preference).
The class is simple. Constructable and assignable from Url or scheme string. Implicit convertible into a numic value_type.
Definition at line 43 of file MediaPriority.h.
| typedef int zypp::media::MediaPriority::value_type |
Definition at line 46 of file MediaPriority.h.
|
inline |
|
inline |
Copy ctor.
Definition at line 55 of file MediaPriority.h.
| zypp::media::MediaPriority::MediaPriority | ( | const std::string & | scheme_r | ) |
Ctor from scheme string.
Definition at line 94 of file MediaPriority.cc.
| zypp::media::MediaPriority::MediaPriority | ( | const Url & | url_r | ) |
Ctor from scheme string defined by Url.
Definition at line 98 of file MediaPriority.cc.
|
inline |
Assign.
Definition at line 67 of file MediaPriority.h.
|
inline |
Assign priority of scheme string.
Definition at line 71 of file MediaPriority.h.
|
inline |
Assign priority of scheme string defined by Url.
Definition at line 75 of file MediaPriority.h.
|
inline |
|
inline |
Explicit.
Definition at line 84 of file MediaPriority.h.
|
inline |
Implicit.
Definition at line 86 of file MediaPriority.h.
|
inline |
Implicit.
Definition at line 88 of file MediaPriority.h.
|
private |
Definition at line 92 of file MediaPriority.h.