#include <Fireworks/Core/interface/CmsShowTaskExecutorBase.h>
Public Member Functions | |
CmsShowTaskExecutorBase () | |
void | doNextTask () |
void | requestNextTask () |
virtual void | startDoingTasks ()=0 |
virtual | ~CmsShowTaskExecutorBase () |
Public Attributes | |
sigc::signal< void > | tasksCompleted_ |
Protected Member Functions | |
virtual void | doNextTaskImp ()=0 |
virtual bool | moreTasksAvailable ()=0 |
Private Member Functions | |
CmsShowTaskExecutorBase (const CmsShowTaskExecutorBase &) | |
const CmsShowTaskExecutorBase & | operator= (const CmsShowTaskExecutorBase &) |
Private Attributes | |
CmsShowTaskTimer * | m_taskTimer |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 31 of file CmsShowTaskExecutorBase.h.
CmsShowTaskExecutorBase::CmsShowTaskExecutorBase | ( | ) |
Definition at line 33 of file CmsShowTaskExecutorBase.cc.
References m_taskTimer.
{ //m_timer->Connect("Timeout()","CmsShowTaskExecutorBase",this,"doNextTask()"); m_taskTimer = new CmsShowTaskTimer(this, 10); }
CmsShowTaskExecutorBase::~CmsShowTaskExecutorBase | ( | ) | [virtual] |
Definition at line 45 of file CmsShowTaskExecutorBase.cc.
{
//delete m_timer;
}
CmsShowTaskExecutorBase::CmsShowTaskExecutorBase | ( | const CmsShowTaskExecutorBase & | ) | [private] |
void CmsShowTaskExecutorBase::doNextTask | ( | ) |
Definition at line 78 of file CmsShowTaskExecutorBase.cc.
References doNextTaskImp(), m_taskTimer, moreTasksAvailable(), requestNextTask(), and tasksCompleted_.
Referenced by CmsShowTaskTimer::Notify().
{ m_taskTimer->TurnOff(); doNextTaskImp(); if(moreTasksAvailable()) { requestNextTask(); } else { tasksCompleted_.emit(); } }
virtual void CmsShowTaskExecutorBase::doNextTaskImp | ( | ) | [protected, pure virtual] |
Implemented in CmsShowTaskExecutor.
Referenced by doNextTask().
virtual bool CmsShowTaskExecutorBase::moreTasksAvailable | ( | ) | [protected, pure virtual] |
Implemented in CmsShowTaskExecutor.
Referenced by doNextTask().
const CmsShowTaskExecutorBase& CmsShowTaskExecutorBase::operator= | ( | const CmsShowTaskExecutorBase & | ) | [private] |
void CmsShowTaskExecutorBase::requestNextTask | ( | ) |
Definition at line 66 of file CmsShowTaskExecutorBase.cc.
References m_taskTimer.
Referenced by doNextTask(), and CmsShowTaskExecutor::startDoingTasks().
{ //NOTE: If I use my own timer then the first time I call Start it works but the second // time causes a segmentation fault //Emit("requestNextTask()"); //m_timer->Start(1,kTRUE); //std::cout <<"requestNextTask"<<std::endl; m_taskTimer->TurnOn(); }
virtual void CmsShowTaskExecutorBase::startDoingTasks | ( | ) | [pure virtual] |
Implemented in CmsShowTaskExecutor.
Definition at line 59 of file CmsShowTaskExecutorBase.h.
Referenced by CmsShowTaskExecutorBase(), doNextTask(), and requestNextTask().
sigc::signal<void> CmsShowTaskExecutorBase::tasksCompleted_ |
Definition at line 47 of file CmsShowTaskExecutorBase.h.
Referenced by doNextTask().