HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PDG_CommandChunk Class Reference

#include <PDG_CommandChunk.h>

+ Inheritance diagram for PDG_CommandChunk:

Public Member Functions

 PDG_CommandChunk (bool is_delayed)
 
 PDG_CommandChunk (bool is_delayed, const UT_StringHolder &description)
 
bool canDoIt () override
 
bool canUndoIt () override
 
void addCommand (UT_UniquePtr< PDG_Command > cmd)
 
bool hasCommand ()
 
bool isDelayed ()
 
PDG_CommandType baseCommandType () override
 
PDG_CommandType commandType () override
 
void description (UT_WorkBuffer &buffer, int depth=0) override
 
void fullDescription (UT_WorkBuffer &buffer) override
 
void commands (UT_Array< PDG_Command * > &commands) const
 
- Public Member Functions inherited from PDG_Command
 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)
 
UT_StringHolder timeAsString () const
 
time_t creationTime () const
 

Protected Member Functions

bool doCommand (PDG_GraphContext *context, UT_WorkBuffer &errors) override
 
bool undoCommand (PDG_GraphContext *context, UT_WorkBuffer &errors) override
 

Protected Attributes

bool myIsDelayed
 
UT_StringHolder myChunkDescription
 
UT_Array< UT_UniquePtr
< PDG_Command > > 
myCommands
 

Detailed Description

Definition at line 24 of file PDG_CommandChunk.h.

Constructor & Destructor Documentation

PDG_CommandChunk::PDG_CommandChunk ( bool  is_delayed)
PDG_CommandChunk::PDG_CommandChunk ( bool  is_delayed,
const UT_StringHolder description 
)

Member Function Documentation

void PDG_CommandChunk::addCommand ( UT_UniquePtr< PDG_Command cmd)
PDG_CommandType PDG_CommandChunk::baseCommandType ( )
overridevirtual

Reimplemented from PDG_Command.

bool PDG_CommandChunk::canDoIt ( )
overridevirtual

Reimplemented from PDG_Command.

bool PDG_CommandChunk::canUndoIt ( )
overridevirtual

Reimplemented from PDG_Command.

void PDG_CommandChunk::commands ( UT_Array< PDG_Command * > &  commands) const
PDG_CommandType PDG_CommandChunk::commandType ( )
inlineoverridevirtual

Implements PDG_Command.

Definition at line 39 of file PDG_CommandChunk.h.

void PDG_CommandChunk::description ( UT_WorkBuffer buffer,
int  depth = 0 
)
overridevirtual

Reimplemented from PDG_Command.

bool PDG_CommandChunk::doCommand ( PDG_GraphContext context,
UT_WorkBuffer errors 
)
overrideprotectedvirtual

Implements PDG_Command.

void PDG_CommandChunk::fullDescription ( UT_WorkBuffer buffer)
overridevirtual

Reimplemented from PDG_Command.

bool PDG_CommandChunk::hasCommand ( )
bool PDG_CommandChunk::isDelayed ( )
inline

Definition at line 37 of file PDG_CommandChunk.h.

bool PDG_CommandChunk::undoCommand ( PDG_GraphContext context,
UT_WorkBuffer errors 
)
overrideprotectedvirtual

Implements PDG_Command.

Member Data Documentation

UT_StringHolder PDG_CommandChunk::myChunkDescription
protected

Definition at line 55 of file PDG_CommandChunk.h.

UT_Array<UT_UniquePtr<PDG_Command> > PDG_CommandChunk::myCommands
protected

Definition at line 56 of file PDG_CommandChunk.h.

bool PDG_CommandChunk::myIsDelayed
protected

Definition at line 54 of file PDG_CommandChunk.h.


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