test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CmsShowTaskExecutor.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_CmsShowTaskExecutor_h
2 #define Fireworks_Core_CmsShowTaskExecutor_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : CmsShowTaskExecutor
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Fri Jul 11 12:09:45 EDT 2008
19 //
20 
21 // system include files
22 #include <boost/function.hpp>
23 #include <deque>
24 
25 // user include files
27 
28 // forward declarations
29 
31 
32 public:
34  virtual ~CmsShowTaskExecutor();
35 
36  typedef boost::function0<void> TaskFunctor;
37  // ---------- const member functions ---------------------
38 
39  // ---------- static member functions --------------------
40 
41  // ---------- member functions ---------------------------
42  void addTask(const TaskFunctor& iTask);
43 
44  void startDoingTasks();
45 protected:
46  virtual void doNextTaskImp();
47  virtual bool moreTasksAvailable();
48 
49 private:
50  CmsShowTaskExecutor(const CmsShowTaskExecutor&); // stop default
51 
52  const CmsShowTaskExecutor& operator=(const CmsShowTaskExecutor&); // stop default
53 
54  // ---------- member data --------------------------------
55  std::deque<TaskFunctor> m_tasks;
56 };
57 
58 
59 #endif
virtual bool moreTasksAvailable()
virtual void doNextTaskImp()
std::deque< TaskFunctor > m_tasks
boost::function0< void > TaskFunctor
void addTask(const TaskFunctor &iTask)
const CmsShowTaskExecutor & operator=(const CmsShowTaskExecutor &)