1 #if !defined(__COMMANDFRAME_HPP)
2 #define __COMMANDFRAME_HPP
24 #if !defined(__COMMON_HPP)
28 #if !defined(__ABSTRACTCOMMAND_HPP)
29 #include <AbstractCommand.hpp>
32 #if !defined(__VECTOR_HPP)
36 #if !defined(__COMMANDFRAMEEXCEPTION_HPP)
37 #include <CommandFrameException.hpp>
42 CORELINUX_VECTOR( AbstractCommandPtr , Commands );
44 DECLARE_CLASS( CommandFrame );
250 #endif // if !defined(__COMMANDFRAME_HPP)
CommandFrameException is the base exception type for CommandFrame.
Definition: CommandFrameException.hpp:39
void setAutoReverse(bool)
Sets the auto reverse flag.
Definition: CommandFrame.cpp:201
void execute(void)
Run the frame which will iterate through the commands, calling execute for each on.
Definition: CommandFrame.cpp:217
bool theAutoReverseFlag
The recovery flag.
Definition: CommandFrame.hpp:238
WorkState theWorkState
The state of execution.
Definition: CommandFrame.hpp:242
Commands theCommands
The Commands that make up the frame.
Definition: CommandFrame.hpp:246
CommandFrame(bool autoReverse=false)
Default Constructor.
Definition: CommandFrame.cpp:33
bool operator==(CommandFrameCref) const
Equality operator.
Definition: CommandFrame.cpp:110
virtual void addCommand(AbstractCommandPtr)
Explicit call to add command.
Definition: CommandFrame.cpp:185
CommandFrameRef operator=(CommandFrameCref)
Operator assignment.
Definition: CommandFrame.cpp:78
virtual void getCommands(CommandsRef) const
Retrieves the commands into a Command collection.
Definition: CommandFrame.cpp:130
virtual WorkState executeCommands(void)
Called from execute AFTER the state is set to EXECUTING and a synchronized monitor is created...
Definition: CommandFrame.cpp:291
WorkState getState(void) const
Retrieves the state of the frame.
Definition: CommandFrame.cpp:117
Forward reference the various common classes.
Definition: AbstractAllocator.hpp:32
AbstractCommand captures the semantics of the capabilities of commands, which is basically to provide...
Definition: AbstractCommand.hpp:38
CommandFrame builds a unit of work around one or more Commands.
Definition: CommandFrame.hpp:69
virtual WorkState executeReverseCommands(void)
Called from executeReverse AFTER the state is set to REVERSING and a synchronized monitor is created...
Definition: CommandFrame.cpp:358
void executeReverse(void)
Run the reverse commands.
Definition: CommandFrame.cpp:254
CommandFrameRef operator+=(AbstractCommandPtr)
Operator overload for adding a command.
Definition: CommandFrame.cpp:145
virtual ~CommandFrame(void)
Virtual destructor.
Definition: CommandFrame.cpp:69
WorkState
State of execution.
Definition: CommandFrame.hpp:50
Synchronized is a mixin which allows class objects to enable monitor functionality.
Definition: Synchronized.hpp:41
bool getReverseFlag(void) const
Retrieves the auto reverse flag.
Definition: CommandFrame.cpp:123
The state is in building, no work has been performed.
Definition: CommandFrame.hpp:54