HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PDG_Command Class Referenceabstract

#include <PDG_Command.h>

+ Inheritance diagram for PDG_Command:

Public Member Functions

 PDG_Command ()
 
virtual ~PDG_Command ()
 
bool hasDoneIt () const
 
bool hasFailed () const
 
bool result () const
 
bool doIt (PDG_GraphContext *context)
 
bool undoIt (PDG_GraphContext *context)
 
virtual bool doIt (PDG_GraphContext *context, UT_WorkBuffer &errors)
 
virtual bool undoIt (PDG_GraphContext *context, UT_WorkBuffer &errors)
 
virtual bool canDoIt ()
 
virtual bool canUndoIt ()
 
virtual PDG_CommandType commandType ()=0
 
virtual PDG_CommandType baseCommandType ()
 
virtual void description (UT_WorkBuffer &buffer, int depth=0)
 
virtual void fullDescription (UT_WorkBuffer &buffer)
 
UT_StringHolder timeAsString () const
 
time_t creationTime () const
 

Protected Member Functions

virtual bool doCommand (PDG_GraphContext *, UT_WorkBuffer &)=0
 
virtual bool undoCommand (PDG_GraphContext *, UT_WorkBuffer &)=0
 

Detailed Description

Definition at line 29 of file PDG_Command.h.

Constructor & Destructor Documentation

PDG_Command::PDG_Command ( )
virtual PDG_Command::~PDG_Command ( )
virtual

Member Function Documentation

virtual PDG_CommandType PDG_Command::baseCommandType ( )
virtual

Reimplemented in PDG_CommandChunk.

virtual bool PDG_Command::canDoIt ( )
virtual

Reimplemented in PDG_CommandChunk.

virtual bool PDG_Command::canUndoIt ( )
virtual

Reimplemented in PDG_CommandChunk.

virtual PDG_CommandType PDG_Command::commandType ( )
pure virtual

Implemented in PDG_CommandChunk.

time_t PDG_Command::creationTime ( ) const
inline

Definition at line 52 of file PDG_Command.h.

virtual void PDG_Command::description ( UT_WorkBuffer buffer,
int  depth = 0 
)
virtual

Reimplemented in PDG_CommandChunk.

virtual bool PDG_Command::doCommand ( PDG_GraphContext ,
UT_WorkBuffer  
)
protectedpure virtual

Implemented in PDG_CommandChunk.

bool PDG_Command::doIt ( PDG_GraphContext context)
virtual bool PDG_Command::doIt ( PDG_GraphContext context,
UT_WorkBuffer errors 
)
virtual
virtual void PDG_Command::fullDescription ( UT_WorkBuffer buffer)
virtual

Reimplemented in PDG_CommandChunk.

bool PDG_Command::hasDoneIt ( ) const
bool PDG_Command::hasFailed ( ) const
bool PDG_Command::result ( ) const
inline

Definition at line 38 of file PDG_Command.h.

UT_StringHolder PDG_Command::timeAsString ( ) const
virtual bool PDG_Command::undoCommand ( PDG_GraphContext ,
UT_WorkBuffer  
)
protectedpure virtual

Implemented in PDG_CommandChunk.

bool PDG_Command::undoIt ( PDG_GraphContext context)
virtual bool PDG_Command::undoIt ( PDG_GraphContext context,
UT_WorkBuffer errors 
)
virtual

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