00001 00005 00006 #ifndef _H_ACT_TESTACTION 00007 #define _H_ACT_TESTACTION 00008 00009 #include "ACT_Action.h" 00010 00011 #include <iostream> 00012 00013 class ACT_TestAction : public ACT_Action 00014 { 00015 public: 00016 ACT_TestAction(GEN_String& name) : ACT_Action(name) {} 00017 virtual ~ACT_TestAction() { cout << m_name.Ptr() << ": deleted\n"; } 00018 protected: 00019 virtual void doApply() { cout << m_name.Ptr() << ": applied\n"; } 00020 virtual void doUndo() { cout << m_name.Ptr() << ": undoed\n"; } 00021 }; 00022 00023 #endif // _H_ACT_TESTACTION