35 #ifndef ANA_PROCESSOR_COMMAND_H
36 #define ANA_PROCESSOR_COMMAND_H
55 struct CommandContext;
75 virtual std::string
name()
const = 0;
The abstract base class for commands.
virtual void undoit()
Undo a command.
virtual void write(Tree &com, Serializer *ser) const
Print the guts of a command into a Tree given as parent.
virtual void undo()
Undo the command - may use {\tt undoit()}.
virtual void execute()
Execute the command - may use {\tt doit()}.
virtual ~Command()
Destructor does nothing.
Command()
The programmer cannot call the constructor of an abstract base class.
virtual void doit()=0
Do a command.
virtual void redo()
Redo the command - may use {\tt doit()}.
virtual std::string name() const =0
Return the unique name of a class of commands.
The abstract base class for usual commands.
RegularCommand()
The programmer cannot call the constructor of an abstract base class.
virtual ~RegularCommand()
Destructor does nothing.
Serializer is a helper class for pointer serialization.
The abstract base class used for commands that have to read/write pointers.
SerializingCommand(CommandContext *)
CommandContext * context()
const CommandContext * context() const
virtual ~SerializingCommand()
CommandContext * _context
The abstract base class for commands that display a watch cursor.
virtual void execute()
Execute the command - may use {\tt doit()}.
WaitCommand()
The programmer cannot call the constructor of an abstract base class.
virtual void undo()
Undo the command - may use {\tt undoit()}.
virtual void redo()
Redo the command - may use {\tt doit()}.
virtual ~WaitCommand()
Destructor does nothing.
Context for commands processor readers (APipeReader etc)