CODMacroCommand Class
class CODMacroCommand: public CODCommand
A single command which performs multiple CODCommand-derived subcommands in one step.Defined in: OdMacroCmd.h
Class Members
CODMacroCommand(CODModel* pModel)
Constructor.
virtual ~CODMacroCommand()
Destructor.
CODCommandSet m_setCommands
Set of contained sub-commands.
virtual BOOL Execute()
Executes the subcommands.
virtual BOOL Unexecute()
Unexecutes the subcommands.
virtual void AddCommand(CODCommand* pCmd)
Adds a command to the subcommand list.
virtual void AddCommands(CODCommandSet* pCmdSet)
Adds multiple commands to the subcommand list.
virtual void RemoveAllCommands()
Removes all of the commands from the subcommand list.
virtual CODCommand* GetCommand(const int& nIndex)
Retrieves a command from the subcommand list.
virtual CODCommand*& operator[](const int& nIndex)
Retrieves a reference to a command in the subcommand list.
Comments
The CODMacroCommand's list of affected components must be changed whenever a subcommand's component list is changed and the net list of affected components is changed.virtual void Sprint(CString &)
Creates an informative string used for logging/debugging purposes.
virtual CODCommandSet* GetCommands()
Returns a pointer to the list of commands.