|
libzypp
15.3.0
|
Country codes (iso3166-1-alpha-2). More...
#include <CountryCode.h>
Classes | |
| struct | Impl |
| CountryCode implementation. More... | |
Public Member Functions | |
| CountryCode () | |
| Default ctor. More... | |
| CountryCode (const std::string &code_r) | |
| Ctor taking a string. More... | |
| ~CountryCode () | |
| Dtor. More... | |
| std::string | code () const |
| Return the country code. More... | |
| std::string | name () const |
| Return the country name; if not available the country code. More... | |
| bool | hasCode () const |
*this != noCode. More... | |
Static Public Attributes | |
CountryCode constants. | |
| static const CountryCode | noCode |
| No or empty code. More... | |
Private Attributes | |
| RW_pointer< Impl > | _pimpl |
| Pointer to implementation. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const CountryCode &obj) |
Related Functions | |
(Note that these are not member functions.) | |
| std::ostream & | operator<< (std::ostream &str, const CountryCode &obj) |
| template<> | |
| bool | operator() (const zypp::CountryCode &lhs, const zypp::CountryCode &rhs) const |
| bool | operator== (const CountryCode &lhs, const CountryCode &rhs) |
| Comparison based on string value. More... | |
| bool | operator== (const std::string &lhs, const CountryCode &rhs) |
| bool | operator== (const CountryCode &lhs, const std::string &rhs) |
| bool | operator!= (const CountryCode &lhs, const CountryCode &rhs) |
| bool | operator!= (const std::string &lhs, const CountryCode &rhs) |
| bool | operator!= (const CountryCode &lhs, const std::string &rhs) |
Country codes (iso3166-1-alpha-2).
In fact the class will not prevent to use a non iso country code. Just a warning will appear in the log.
Definition at line 37 of file CountryCode.h.
| zypp::CountryCode::CountryCode | ( | ) |
Default ctor.
Definition at line 149 of file CountryCode.cc.
|
explicit |
Ctor taking a string.
Definition at line 158 of file CountryCode.cc.
| zypp::CountryCode::~CountryCode | ( | ) |
Dtor.
Definition at line 167 of file CountryCode.cc.
| std::string zypp::CountryCode::code | ( | ) | const |
Return the country code.
Definition at line 175 of file CountryCode.cc.
| std::string zypp::CountryCode::name | ( | ) | const |
Return the country name; if not available the country code.
Definition at line 183 of file CountryCode.cc.
|
inline |
*this != noCode.
Definition at line 72 of file CountryCode.h.
|
friend |
|
related |
Stream output
Definition at line 82 of file CountryCode.h.
|
related |
Comparison based on string value.
Definition at line 88 of file CountryCode.h.
|
related |
Definition at line 92 of file CountryCode.h.
|
related |
Definition at line 96 of file CountryCode.h.
|
related |
Definition at line 101 of file CountryCode.h.
|
related |
Definition at line 105 of file CountryCode.h.
|
related |
Definition at line 109 of file CountryCode.h.
|
related |
Default order for std::container based on code string value.
Definition at line 123 of file CountryCode.h.
|
static |
No or empty code.
Definition at line 61 of file CountryCode.h.
|
private |
Pointer to implementation.
Definition at line 77 of file CountryCode.h.