#include <ACT_Action.h>
Inheritance diagram for ACT_Action:
Public Methods | |
ACT_Action (GEN_String &name,bool applied=false) | |
Constructs an action with the given name . More... | |
virtual void | getName (GEN_String &name)const |
Returns the name of the action. More... | |
virtual char* | getName () |
Returns the name of the action as a pointer to the data of the string. More... | |
virtual void | setName (const GEN_String &name) |
Sets the name of the action. More... | |
virtual bool | getIsApplied ()const |
Returns whether this action is applied. More... | |
virtual void | apply () |
Call this member to apply an action. More... | |
virtual void | undo () |
Call this member to undo an action . More... | |
Protected Methods | |
virtual void | doApply ()=0 |
Implementations should overload this method to provide the apply functionality. | |
virtual void | doUndo ()=0 |
Implementations should overload this method to provide the undo functionality. | |
Protected Attributes | |
bool | m_applied |
Is this action already applied? | |
GEN_String | m_name |
Name of this action. |
Virtual base class for actions with a name. An action object inherits the shared object reference count mechanism.
|
Constructs an action with the given name .
|
|
Call this member to apply an action. Child classes should override the doApply member to implement apply functionality.
|
|
Returns whether this action is applied.
|
|
Returns the name of the action as a pointer to the data of the string.
|
|
Returns the name of the action.
|
|
Sets the name of the action.
|
|
Call this member to undo an action . Child classes should override the doUndo member to implement undo functionality.
|