mt4cpp
|
#include <Command.hpp>
Public Member Functions | |
virtual | ~Command () |
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_ |
Friends | |
void | intrusive_ptr_add_ref (Command *ptr) |
void | intrusive_ptr_release (Command *ptr) |
The basic class of command, which is executed by scheduler.
|
inlinevirtual |
destructor
|
inline |
the method called by scheduler. It calls the operator() of command.
References setState().
|
inline |
returns the command actual state and progress
|
inline |
mutator - change the command progress (called by Progress::setProgress() )
References mt4cpp::CommandDesc::progress_.
|
inline |
mutator - change the command state (called by Scheduler )
References mt4cpp::CommandDesc::state_.
Referenced by execute().
|
inline |
mutator - change the commmand id (called by Scheduler )
References mt4cpp::CommandDesc::id_.
|
inline |
Suggest the command to break execution (ie sets the flags)
|
inline |
Check the halt flag and throws the exception if set
Referenced by mt4cpp::Progress::step().
|
inline |
the accessor to the counter
|
inline |
add observer (add observer to command)
References mt4cpp::Progress::attach().
|
friend |
for intrusive_ptr