svcore  1.9
MacroCommand Class Reference

#include <Command.h>

Inheritance diagram for MacroCommand:
Collaboration diagram for MacroCommand:

List of all members.

Public Member Functions

 MacroCommand (QString name)
virtual ~MacroCommand ()
virtual void addCommand (Command *command)
virtual void deleteCommand (Command *command)
virtual bool haveCommands () const
virtual void execute ()
virtual void unexecute ()
virtual QString getName () const
virtual void setName (QString name)

Protected Attributes

QString m_name
std::vector< Command * > m_commands

Detailed Description

Definition at line 35 of file Command.h.


Constructor & Destructor Documentation

MacroCommand::MacroCommand ( QString  name)

Definition at line 19 of file Command.cpp.

Definition at line 24 of file Command.cpp.

References m_commands.


Member Function Documentation

void MacroCommand::addCommand ( Command command) [virtual]

Reimplemented in SparseModel< PointType >::EditCommand.

Definition at line 32 of file Command.cpp.

References m_commands.

Referenced by SparseModel< PointType >::EditCommand::addCommand().

void MacroCommand::deleteCommand ( Command command) [virtual]

Definition at line 38 of file Command.cpp.

References m_commands.

bool MacroCommand::haveCommands ( ) const [virtual]

Definition at line 52 of file Command.cpp.

References m_commands.

void MacroCommand::execute ( ) [virtual]

Implements Command.

Definition at line 58 of file Command.cpp.

References m_commands.

void MacroCommand::unexecute ( ) [virtual]

Implements Command.

Definition at line 66 of file Command.cpp.

References m_commands.

QString MacroCommand::getName ( ) const [virtual]

Implements Command.

Reimplemented in BundleCommand.

Definition at line 74 of file Command.cpp.

References m_name.

void MacroCommand::setName ( QString  name) [virtual]

Definition at line 80 of file Command.cpp.

References m_name.


Member Data Documentation

QString MacroCommand::m_name [protected]

Definition at line 52 of file Command.h.

Referenced by getName(), BundleCommand::getName(), and setName().


The documentation for this class was generated from the following files: