mt4cpp
|
Testing concrete command class. This commands waits for some time checking halt flag. More...
#include <TickCommand.hpp>
Public Member Functions | |
TickCommand (int steps=10) | |
virtual void | operator() (Progress &progress) |
void | execute () |
CommandDesc | getDescriptor () const |
void | setProgress (double new_progress) |
void | setState (CommandDesc::State new_state) |
void | setId (long new_id) |
void | halt () |
void | checkHaltFlag () const |
int | getCounter () const |
void | attach (PCommandObserver observer) |
Protected Attributes | |
boost::mutex | m_ |
Testing concrete command class. This commands waits for some time checking halt flag.
|
inlinevirtual |
the method which implements the specific task of command. The private members can be overlapped
Implements mt4cpp::Command.
|
inlineinherited |
the method called by scheduler. It calls the operator() of command.
References mt4cpp::Command::setState().
|
inlineinherited |
returns the command actual state and progress
|
inlineinherited |
mutator - change the command progress (called by Progress::setProgress() )
References mt4cpp::CommandDesc::progress_.
|
inlineinherited |
mutator - change the command state (called by Scheduler )
References mt4cpp::CommandDesc::state_.
Referenced by mt4cpp::Command::execute().
|
inlineinherited |
mutator - change the commmand id (called by Scheduler )
References mt4cpp::CommandDesc::id_.
|
inlineinherited |
Suggest the command to break execution (ie sets the flags)
|
inlineinherited |
Check the halt flag and throws the exception if set
Referenced by mt4cpp::Progress::step().
|
inlineinherited |
the accessor to the counter
|
inlineinherited |
add observer (add observer to command)
References mt4cpp::Progress::attach().