PumpkinBrush
Public Member Functions | Public Attributes | List of all members
Command Class Referenceabstract

#include <Command.hpp>

Inheritance diagram for Command:
Inheritance graph
[legend]

Public Member Functions

 Command (int cmdFlag, std::string m_commandDescriptionP)
 
virtual ~Command ()
 N/A. More...
 
virtual bool execute ()=0
 
virtual bool undo ()=0
 
std::string getCommand ()
 

Public Attributes

int m_cmdFlag
 

Constructor & Destructor Documentation

◆ Command()

Command::Command ( int  cmdFlag,
std::string  m_commandDescriptionP 
)
inline

◆ ~Command()

Command::~Command ( )
virtual

N/A.

Member Function Documentation

◆ execute()

virtual bool Command::execute ( )
pure virtual

Implemented in Draw, Erase, and Clear.

◆ getCommand()

std::string Command::getCommand ( )

◆ undo()

virtual bool Command::undo ( )
pure virtual

Implemented in Draw, Erase, and Clear.

Member Data Documentation

◆ m_cmdFlag

int Command::m_cmdFlag

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