CMS 3D CMS Logo

CmsShowTaskExecutorBase.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_CmsShowTaskExecutorBase_h
2 #define Fireworks_Core_CmsShowTaskExecutorBase_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : CmsShowTaskExecutorBase
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Fri Jul 11 12:09:38 EDT 2008
19 //
20 
21 // system include files
22 #include <sigc++/signal.h>
23 
24 // user include files
25 
26 // forward declarations
27 class TTimer;
28 class CmsShowTaskTimer;
29 
31 public:
33  virtual ~CmsShowTaskExecutorBase();
34 
35  // ---------- const member functions ---------------------
36 
37  // ---------- static member functions --------------------
38 
39  // ---------- member functions ---------------------------
40  void requestNextTask();
41  void doNextTask();
42 
43  virtual void startDoingTasks() = 0;
44 
45  sigc::signal<void> tasksCompleted_;
46 
47 protected:
48  virtual void doNextTaskImp() = 0;
49  virtual bool moreTasksAvailable() = 0;
50 
51 private:
52  CmsShowTaskExecutorBase(const CmsShowTaskExecutorBase&) = delete; // stop default
53 
54  const CmsShowTaskExecutorBase& operator=(const CmsShowTaskExecutorBase&) = delete; // stop default
55 
56  // ---------- member data --------------------------------
57  //TTimer* m_timer;
59 };
60 
61 #endif
CmsShowTaskExecutorBase::requestNextTask
void requestNextTask()
Definition: CmsShowTaskExecutorBase.cc:63
CmsShowTaskExecutorBase::doNextTask
void doNextTask()
Definition: CmsShowTaskExecutorBase.cc:73
CmsShowTaskExecutorBase::m_taskTimer
CmsShowTaskTimer * m_taskTimer
Definition: CmsShowTaskExecutorBase.h:58
CmsShowTaskExecutorBase::operator=
const CmsShowTaskExecutorBase & operator=(const CmsShowTaskExecutorBase &)=delete
CmsShowTaskTimer
Definition: CmsShowTaskTimer.h:29
CmsShowTaskExecutorBase::startDoingTasks
virtual void startDoingTasks()=0
CmsShowTaskExecutorBase::moreTasksAvailable
virtual bool moreTasksAvailable()=0
CmsShowTaskExecutorBase::CmsShowTaskExecutorBase
CmsShowTaskExecutorBase()
Definition: CmsShowTaskExecutorBase.cc:32
CmsShowTaskExecutorBase::tasksCompleted_
sigc::signal< void > tasksCompleted_
Definition: CmsShowTaskExecutorBase.h:45
CmsShowTaskExecutorBase::~CmsShowTaskExecutorBase
virtual ~CmsShowTaskExecutorBase()
Definition: CmsShowTaskExecutorBase.cc:44
CmsShowTaskExecutorBase::doNextTaskImp
virtual void doNextTaskImp()=0
CmsShowTaskExecutorBase
Definition: CmsShowTaskExecutorBase.h:30