dca_interface  6.3.4
base_categories.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_CATEGORIES_H
7 #define BASE_CATEGORIES_H
8 
21 namespace dca {
22 
23  class categories_p;
24 
25  class Category;
26 
33  class Categories
34  {
35  public:
37  Categories();
38  Categories( const Categories& cat );
39  Categories& operator = ( const Categories& cat );
40  virtual ~Categories();
42 
49  Category at( DCA_INDEX_TYPE index ) const;
50 
58 
64 
71 
73  PRIVATE_PTR categories_p *_p;
74  };
75 
76 }
77 
78 #endif
Category operator[](DCA_INDEX_TYPE index) const
Similar to at() but allows a more C++ style access.
DCA_SIZE_TYPE size() const
Returns the number of categories in the container.
Definition of a container class for Category objects.
Category byId(DCA_CATEGORY_ID_TYPE id) const
Returns the category with the given category id.
Category at(DCA_INDEX_TYPE index) const
Returns the Category with given index.
int DCA_CATEGORY_ID_TYPE
Type for category ids.
Definition: base_types.h:31
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
Encapsulates a category as defined in the categories XML schema (see Categories XML: Categories).
Definition: base_category.h:26