#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) |
Related Functions | |
| (Note that these are not member functions.) | |
| 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) |
| 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.
|
|
Default ctor.
Definition at line 171 of file CountryCode.cc. |
|
|
Ctor taking a string.
Definition at line 180 of file CountryCode.cc. |
|
|
Dtor.
Definition at line 189 of file CountryCode.cc. |
|
|
Return the country code.
Definition at line 197 of file CountryCode.cc. References _pimpl. Referenced by zypp::Locale::Impl::code(), and operator==(). |
|
|
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(). |
|
|
Definition at line 72 of file CountryCode.h. References noCode. Referenced by zypp::Locale::Impl::code(), and zypp::Locale::Impl::name(). |
|
||||||||||||
|
Stream output Definition at line 82 of file CountryCode.h. |
|
||||||||||||
|
Definition at line 88 of file CountryCode.h. References code(). |
|
||||||||||||
|
Definition at line 92 of file CountryCode.h. References code(). |
|
||||||||||||
|
Definition at line 96 of file CountryCode.h. References code(). |
|
||||||||||||
|
Definition at line 101 of file CountryCode.h. |
|
||||||||||||
|
Definition at line 105 of file CountryCode.h. |
|
||||||||||||
|
Definition at line 109 of file CountryCode.h. |
|
|
No or empty code.
Definition at line 61 of file CountryCode.h. Referenced by hasCode(). |
|
|
Pointer to implementation.
Definition at line 77 of file CountryCode.h. |
1.4.6