#include "ChainTasks.h" ChainTasks::ChainTasks(tasklist_t _tasklist) : tasklist(_tasklist) { SetBurst(); pos = tasklist.begin(); } ChainTasks::~ChainTasks() { } String ChainTasks::GetName() { return "ChainTask"; } int ChainTasks::Do() throw (GeneralException) { if (pos == tasklist.end()) return TASK_DONE; WaitFor(*pos); pos++; return TASK_ON_HOLD; }