--- PamCut/Collections/SmartCollection/SmartCollection.h 2009/06/16 16:45:00 1.4 +++ PamCut/Collections/SmartCollection/SmartCollection.h 2009/06/17 13:02:39 1.5 @@ -66,6 +66,21 @@ */ CollectionAction *GetAction(unsigned int iAction); + /*! @brief Searches for an action by name. + * + * @param actionName The name of the action to search for. + * @return pointer to the desired action; NULL if the specified action cannot be found or if no actions are present. + */ + CollectionAction *GetAction(const char *actionName); + + /*! @brief The number of actions in the collection. + * + * @return The number of actions currently in the collection. + */ + unsigned int GetActionsSize(){ + return _actions.size(); + } + /*! @brief The pre-analysis task definition. * * This override of the Setup() method calls Setup() for the base class PamCutCollection, and subsequently for each @@ -96,8 +111,6 @@ std::vector _actions; std::vector _actionsPositions; - - }; #endif /* SMARTCOLLECTION_H_ */