|
libzypp 17.37.5
|
Country codes (iso3166-1-alpha-2). More...
#include <zypp/CountryCode.h>
Public Member Functions | |
| CountryCode () | |
| Default Ctor: noCode. | |
| CountryCode (IdString str_r) | |
| Ctor from string. | |
| CountryCode (const std::string &str_r) | |
| Ctor from string. | |
| CountryCode (const char *str_r) | |
| Ctor from string. | |
| ~CountryCode () | |
| Dtor. | |
Public Member Functions inherited from zypp::IdStringType< CountryCode > | |
| IdString | idStr () const |
| bool | empty () const |
| unsigned | size () const |
| const char * | c_str () const |
| std::string | asString () const |
| IdType | id () const |
| operator bool () const | |
Evaluate in a boolean context ( ! | |
| operator IdString () const | |
| Explicit conversion to IdString. | |
| operator std::string () const | |
| Explicit conversion to std::string. | |
| int | compare (const CountryCode &rhs) const |
| int | compare (const IdStringType &rhs) const |
| int | compare (const IdString &rhs) const |
| int | compare (const std::string &rhs) const |
| int | compare (const char *rhs) const |
CountryCode constants. | |
| static const CountryCode | noCode |
| Empty code. | |
| class | IdStringType< CountryCode > |
| IdString | _str |
| std::string | code () const |
| Return the country code asString. | |
| std::string | name () const |
| Return the translated country name; if unknown the country code. | |
Additional Inherited Members | |
Public Types inherited from zypp::IdStringType< CountryCode > | |
| using | IdType |
Static Public Member Functions inherited from zypp::IdStringType< CountryCode > | |
| static int | compare (const CountryCode &lhs, const CountryCode &rhs) |
| static int | compare (const CountryCode &lhs, const IdString &rhs) |
| static int | compare (const CountryCode &lhs, const std::string &rhs) |
| static int | compare (const CountryCode &lhs, const char *rhs) |
| static int | compare (const IdString &lhs, const CountryCode &rhs) |
| static int | compare (const IdString &lhs, const IdString &rhs) |
| static int | compare (const IdString &lhs, const std::string &rhs) |
| static int | compare (const IdString &lhs, const char *rhs) |
| static int | compare (const std::string &lhs, const CountryCode &rhs) |
| static int | compare (const std::string &lhs, const IdString &rhs) |
| static int | compare (const std::string &lhs, const std::string &rhs) |
| static int | compare (const std::string &lhs, const char *rhs) |
| static int | compare (const char *lhs, const CountryCode &rhs) |
| static int | compare (const char *lhs, const IdString &rhs) |
| static int | compare (const char *lhs, const std::string &rhs) |
| static int | compare (const char *lhs, const char *rhs) |
Protected Member Functions inherited from zypp::IdStringType< CountryCode > | |
| IdStringType ()=default | |
| IdStringType (const IdStringType &)=default | |
| IdStringType (IdStringType &&) noexcept=default | |
| IdStringType & | operator= (const IdStringType &)=default |
| IdStringType & | operator= (IdStringType &&) noexcept=default |
| ~IdStringType ()=default | |
Static Protected Member Functions inherited from zypp::sat::detail::PoolMember | |
| static PoolImpl & | myPool () |
Related Symbols inherited from zypp::IdStringType< CountryCode > | |
| std::ostream & | operator<< (std::ostream &str, const IdStringType< CountryCode > &obj) |
| Stream output. | |
| bool | operator== (const IdStringType< CountryCode > &lhs, const IdStringType< CountryCode > &rhs) |
| Equal. | |
| bool | operator!= (const IdStringType< CountryCode > &lhs, const IdStringType< CountryCode > &rhs) |
| NotEqual. | |
| bool | operator< (const IdStringType< CountryCode > &lhs, const IdStringType< CountryCode > &rhs) |
| Less. | |
| bool | operator<= (const IdStringType< CountryCode > &lhs, const IdStringType< CountryCode > &rhs) |
| LessEqual. | |
| bool | operator> (const IdStringType< CountryCode > &lhs, const IdStringType< CountryCode > &rhs) |
| Greater. | |
| bool | operator>= (const IdStringType< CountryCode > &lhs, const IdStringType< CountryCode > &rhs) |
| GreaterEqual. | |
| std::ostream & | operator<< (std::ostream &str, const IdStringType< CountryCode > &obj) |
| Stream output. | |
| bool | operator== (const IdStringType< CountryCode > &lhs, const IdStringType< CountryCode > &rhs) |
| Equal. | |
| bool | operator!= (const IdStringType< CountryCode > &lhs, const IdStringType< CountryCode > &rhs) |
| NotEqual. | |
| bool | operator< (const IdStringType< CountryCode > &lhs, const IdStringType< CountryCode > &rhs) |
| Less. | |
| bool | operator<= (const IdStringType< CountryCode > &lhs, const IdStringType< CountryCode > &rhs) |
| LessEqual. | |
| bool | operator> (const IdStringType< CountryCode > &lhs, const IdStringType< CountryCode > &rhs) |
| Greater. | |
| bool | operator>= (const IdStringType< CountryCode > &lhs, const IdStringType< CountryCode > &rhs) |
| GreaterEqual. | |
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 30 of file CountryCode.h.
| zypp::CountryCode::CountryCode | ( | ) |
Default Ctor: noCode.
Definition at line 120 of file CountryCode.cc.
|
explicit |
Ctor from string.
Definition at line 123 of file CountryCode.cc.
|
explicit |
Ctor from string.
Definition at line 127 of file CountryCode.cc.
|
explicit |
Ctor from string.
Definition at line 131 of file CountryCode.cc.
| zypp::CountryCode::~CountryCode | ( | ) |
Dtor.
Definition at line 135 of file CountryCode.cc.
|
inline |
Return the country code asString.
Definition at line 58 of file CountryCode.h.
| std::string zypp::CountryCode::name | ( | ) | const |
Return the translated country name; if unknown the country code.
Definition at line 139 of file CountryCode.cc.
|
friend |
Definition at line 62 of file CountryCode.h.
|
static |
Empty code.
Definition at line 53 of file CountryCode.h.
|
private |
Definition at line 66 of file CountryCode.h.