mt4cpp
Public Member Functions | List of all members
mt4cpp::Progress Class Reference

class to set the progress of given command. Subject in Obverver design pattern. It also check the 'halt-command' flag and if it is set it throws exception UserBreakException. More...

#include <Command.hpp>

Collaboration diagram for mt4cpp::Progress:
Collaboration graph

Public Member Functions

 Progress (Command &cmd)
 
 Progress (const Progress &p)
 
 Progress (const Progress &parent, double st, double fi)
 
void setProgress (double current)
 
void step ()
 notify all observers, increase the progress More...
 
void changeState (CommandDesc::State state)
 
void attach (PCommandObserver observer)
 add observer More...
 

Detailed Description

class to set the progress of given command. Subject in Obverver design pattern. It also check the 'halt-command' flag and if it is set it throws exception UserBreakException.

Constructor & Destructor Documentation

mt4cpp::Progress::Progress ( const Progress parent,
double  st,
double  fi 
)
inline

creates sub-progress, the notification of the same observers, but the output progress is recalulated (0% is the 'st', 100% is the 'fi')

Member Function Documentation

void mt4cpp::Progress::step ( )
inline

notify all observers, increase the progress

References mt4cpp::Command::checkHaltFlag(), and mt4cpp::CommandObserver::notifyStep().

void mt4cpp::Progress::attach ( PCommandObserver  observer)
inline

add observer

Referenced by mt4cpp::Command::attach().


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