dca_interface  6.3.4
base_locales.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_LOCALES_H
7 #define BASE_LOCALES_H
8 
21 namespace dca {
22 
23  class locales_p;
24 
25  class Locale;
26 
33  class Locales
34  {
35  public:
37  Locales();
38  Locales( const Locales& grp );
39  Locales& operator = ( const Locales& grp );
40  virtual ~Locales();
42 
49  Locale at( DCA_INDEX_TYPE index ) const;
62 
64  PRIVATE_PTR locales_p *_p;
65  };
66 
67 }
68 
69 #endif
Encapsulation of a locale class, which allows access to the language id and the display name of local...
Definition: base_locale.h:28
DCA_SIZE_TYPE size() const
Returns the number of categories in the container.
Locale operator[](DCA_INDEX_TYPE index) const
Similar to at() but allows a more C++ style access.
size_t DCA_INDEX_TYPE
Type for index access (used for arrays and collections).
Definition: base_types.h:66
size_t DCA_SIZE_TYPE
Type for size (used for size of array and collections).
Definition: base_types.h:72
#define PRIVATE_PTR
Type for private pointer implementations, for internal use only.
Definition: base_types.h:83
Definition of a container class for Locale objects.
Definition: base_locales.h:34
Locale at(DCA_INDEX_TYPE index) const
Returns the Locale with given index.