7 #ifndef MT4CPP_OSTREAM_COMMAND_OBSERVER_HPP
8 #define MT4CPP_OSTREAM_COMMAND_OBSERVER_HPP
11 #include <boost/thread.hpp>
25 boost::mutex::scoped_lock scoped_lock(out_mutex);
26 out_ << static_cast<int>(progress * 100) <<
'%' << std::endl;
31 boost::mutex::scoped_lock scoped_lock(out_mutex);
32 out_ <<
'.' << std::flush;
40 boost::mutex out_mutex;
47 #endif // MT4CPP_OSTREAM_COMMAND_OBSERVER_HPP
The command module (Command base class, progress, command description).
virtual void notifyState(const Command &, CommandDesc::State)
Definition: OstreamCommandObserver.hpp:36
virtual void notifyStep(const Command &)
Definition: OstreamCommandObserver.hpp:30
State
available states of Command NONE - command created, but not put in activation queue QUEUED - command ...
Definition: Command.hpp:37
Definition: Command.hpp:21
Definition: Command.hpp:120
virtual void notifyProgress(const Command &, double progress)
Definition: OstreamCommandObserver.hpp:24
Definition: OstreamCommandObserver.hpp:18
Definition: Command.hpp:51