Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Command Class Reference

#include <Command.h>

Inheritance diagram for Command:
CreatePolyCommand EditCommand

List of all members.

Public Member Functions

 Command (const char *name, MagicDoc *document)
virtual ~Command ()
virtual void Do ()
virtual void Undo ()
const char * Name () const

Static Public Member Functions

static const char * TYPENAME ()

Protected Attributes

Text name
MagicDocdocument

Detailed Description

Definition at line 34 of file Command.h.


Constructor & Destructor Documentation

Command::Command ( const char *  name,
MagicDoc document 
)

Definition at line 30 of file Command.cpp.

Command::~Command ( )
virtual

Definition at line 35 of file Command.cpp.


Member Function Documentation

void Command::Do ( )
virtual

Reimplemented in EditCommand, and CreatePolyCommand.

Definition at line 43 of file Command.cpp.

const char* Command::Name ( ) const
inline

Definition at line 46 of file Command.h.

static const char* Command::TYPENAME ( )
inlinestatic

Definition at line 37 of file Command.h.

void Command::Undo ( )
virtual

Reimplemented in EditCommand, and CreatePolyCommand.

Definition at line 49 of file Command.cpp.


Member Data Documentation

MagicDoc* Command::document
protected

Definition at line 50 of file Command.h.

Text Command::name
protected

Definition at line 49 of file Command.h.


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