#include <CountryCode.h>
Public Member Functions | |
| CountryCode () | |
| Default ctor. | |
| CountryCode (const std::string &code_r) | |
| Ctor taking a string. | |
| ~CountryCode () | |
| Dtor. | |
| std::string | code () const |
| Return the country code. | |
| std::string | name () const |
| Return the country name; if not available the country code. | |
| bool | hasCode () const |
*this != noCode. | |
Static Public Attributes | |
CountryCode constants. | |
| static const CountryCode | noCode |
| No or empty code. | |
Private Attributes | |
| RW_pointer< Impl > | _pimpl |
| Pointer to implementation. | |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const CountryCode &obj) |
| Stream output. | |
Related Functions | |
| (Note that these are not member functions.) | |
| template<> | |
| bool | operator() (const zypp::CountryCode &lhs, const zypp::CountryCode &rhs) const |
| Default order for std::container based on code string value. | |
| bool | operator== (const CountryCode &lhs, const CountryCode &rhs) |
| Comparison based on string value. | |
| 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) |
Classes | |
| struct | Impl |
| CountryCode implementation. More... | |
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 | ( | ) |
| zypp::CountryCode::CountryCode | ( | const std::string & | code_r | ) | [explicit] |
| zypp::CountryCode::~CountryCode | ( | ) |
| std::string zypp::CountryCode::code | ( | ) | const |
Return the country code.
Definition at line 197 of file CountryCode.cc.
References _pimpl.
Referenced by zypp::Locale::Impl::code(), operator()(), and operator==().
| std::string zypp::CountryCode::name | ( | ) | const |
Return the country name; if not available the country code.
Definition at line 205 of file CountryCode.cc.
References _pimpl.
Referenced by zypp::Locale::Impl::name().
| bool zypp::CountryCode::hasCode | ( | ) | const [inline] |
*this != noCode.
Definition at line 72 of file CountryCode.h.
References noCode.
Referenced by zypp::Locale::Impl::code(), zypp::Locale::Impl::fallback(), and zypp::Locale::Impl::name().
| std::ostream & operator<< | ( | std::ostream & | str, | |
| const CountryCode & | obj | |||
| ) | [friend] |
| bool operator== | ( | const CountryCode & | lhs, | |
| const CountryCode & | rhs | |||
| ) | [related] |
| bool operator== | ( | const std::string & | lhs, | |
| const CountryCode & | rhs | |||
| ) | [related] |
| bool operator== | ( | const CountryCode & | lhs, | |
| const std::string & | rhs | |||
| ) | [related] |
| bool operator!= | ( | const CountryCode & | lhs, | |
| const CountryCode & | rhs | |||
| ) | [related] |
Definition at line 101 of file CountryCode.h.
| bool operator!= | ( | const std::string & | lhs, | |
| const CountryCode & | rhs | |||
| ) | [related] |
Definition at line 105 of file CountryCode.h.
| bool operator!= | ( | const CountryCode & | lhs, | |
| const std::string & | rhs | |||
| ) | [related] |
Definition at line 109 of file CountryCode.h.
| bool operator() | ( | const zypp::CountryCode & | lhs, | |
| const zypp::CountryCode & | rhs | |||
| ) | const [related] |
Default order for std::container based on code string value.
Definition at line 123 of file CountryCode.h.
References code().
const CountryCode zypp::CountryCode::noCode [static] |
RW_pointer<Impl> zypp::CountryCode::_pimpl [private] |
1.5.3