--- PamCut/CollectionActions/CollectionAction/CollectionAction.h 2009/05/27 13:30:09 1.1.1.1 +++ PamCut/CollectionActions/CollectionAction/CollectionAction.h 2009/08/05 13:58:05 1.3 @@ -11,6 +11,7 @@ #define COLLECTIONACTION_H_ #include +#include "../../CommonDefs.h" /*! @brief An abstract class that defines the interface of a generic collection action. * @@ -38,7 +39,8 @@ _actionName(actionName) { } /*! @brief Destructor. */ - ~CollectionAction() { + virtual ~CollectionAction() { + } /*! @brief The initialization routine. @@ -84,6 +86,11 @@ */ virtual void Finalize() = 0; + /*! @brief Returns the action name. */ + const char *GetName(){ + return _actionName; + } + private: const char* _actionName; };