dca_interface  6.3.4
ipr_enums.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 IPR_ENUMS_H
7 #define IPR_ENUMS_H
8 
16 namespace dca_ipr {
17 
18  class iprenums_p;
19 
30  class IprEnums {
31  public:
33  IprEnums();
34  IprEnums( const IprEnums& aEnums );
35  IprEnums& operator = ( const IprEnums& aEnums );
36  virtual ~IprEnums();
38 
44  IprEnum at( DCA_INDEX_TYPE index ) const;
45 
52 
58 
65 
67  PRIVATE_PTR iprenums_p *_p;
68  };
69 
70 }
71 
72 #endif
DCA_SIZE_TYPE size() const
Returns the number of enums in the container.
IprEnum at(DCA_INDEX_TYPE index) const
Returns the IprEnum with given index.
int DCA_ENUM_ID_TYPE
Id type for IprEnum class.
Definition: ipr_base.h:21
IprEnum byId(DCA_ENUM_ID_TYPE id) const
Returns the IprEnum with the given id.
The IprEnum class describes a single enumerable item, for example the Geo Location "Greenland".
Definition: ipr_enum.h:26
IprEnum operator[](DCA_INDEX_TYPE index) const
Similar to at() but allows a more C++ style access.
Definition of a container class for IprEnum objects.
Definition: ipr_enums.h:30
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