dca_interface
6.3.4
home
build
tmp
dcatmp18664
pkgdevel
dca
include
dca
base
base_locale.h
Go to the documentation of this file.
1
/* IBM Source Code */
2
/* (C) Copyright IBM Corp. 2009, 2012 */
3
/* Licensed Materials - Property of IBM */
4
/* US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA Schedule Contract with IBM Corp. */
5
6
#ifndef BASE_LOCALE_H
7
#define BASE_LOCALE_H
8
17
namespace
dca {
18
19
class
locale_p;
20
27
class
Locale
28
{
29
public
:
31
Locale
();
32
Locale
(
const
Locale
& grp );
33
Locale
& operator = (
const
Locale
& grp );
34
virtual
~
Locale
();
36
38
bool
operator ==
(
const
Locale
& aLocale );
39
41
bool
operator !=
(
const
Locale
& aLocale );
42
44
std::string
languageId
()
const
;
46
std::string
displayName
()
const
;
47
49
PRIVATE_PTR
locale_p *_p;
50
};
51
55
extern
Locale
NullLocale
;
56
57
}
58
59
#endif
dca::Locale::operator==
bool operator==(const Locale &aLocale)
Standard equality check for two locales.
dca::Locale
Encapsulation of a locale class, which allows access to the language id and the display name of local...
Definition:
base_locale.h:28
dca::Locale::operator!=
bool operator!=(const Locale &aLocale)
Standard inequality check for two locales.
dca::NullLocale
Locale NullLocale
defines a constant unassigned Locale you can use for checks. if( myLocale == NullLocale ) --> myLocal...
dca::Locale::displayName
std::string displayName() const
Returns the display name of the locale.
PRIVATE_PTR
#define PRIVATE_PTR
Type for private pointer implementations, for internal use only.
Definition:
base_types.h:83
dca::Locale::languageId
std::string languageId() const
Returns the language id as defined in the related categories.xml.
Generated by
1.8.18