dca_interface  6.3.4
wac_actions.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 WAC_ACTIONS_H
7 #define WAC_ACTIONS_H
8 
16 namespace dca_wac {
17 
18  class wacactions_p;
19 
32  class WacActions {
33  public:
35  WacActions();
36  WacActions( const WacActions& aActions );
37  WacActions& operator = ( const WacActions& aActions );
38  virtual ~WacActions();
40 
47  WacAction at( DCA_INDEX_TYPE index ) const;
48 
56 
62 
68  WacAction byId( DCA_ACTION_ID_TYPE actionId ) const;
69 
71  PRIVATE_PTR wacactions_p *_p;
72  };
73 
74 }
75 
76 #endif
WacAction byId(DCA_ACTION_ID_TYPE actionId) const
Returns the action with the given action id.
int DCA_ACTION_ID_TYPE
Type for action ids.
Definition: base_types.h:42
The WacAction class represents a given action of an application e.g. UPLOAD FILE, ADD ATTACHMENT,...
Definition: wac_action.h:30
WacAction operator[](DCA_INDEX_TYPE index) const
Similar to at() but allows a more C++ style access.
Definition of a container class for WacAction objects.
Definition: wac_actions.h:32
WacAction at(DCA_INDEX_TYPE index) const
Returns the WacAction with the given index.
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
DCA_SIZE_TYPE size() const
Returns the number of actions in the container.