Mercurial > hg > orthanc
diff OrthancServer/Scheduler/ServerScheduler.cpp @ 1009:26642cecd36d lua-scripting
clearer job interface
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Jul 2014 16:11:44 +0200 |
parents | 13e230bbd882 |
children | 6e7e5ed91c2d |
line wrap: on
line diff
--- a/OrthancServer/Scheduler/ServerScheduler.cpp Tue Jul 08 18:14:24 2014 +0200 +++ b/OrthancServer/Scheduler/ServerScheduler.cpp Wed Jul 09 16:11:44 2014 +0200 @@ -51,11 +51,6 @@ { } - virtual bool SendOutputsToSink() const - { - return false; - } - virtual bool Apply(ListOfStrings& outputs, const ListOfStrings& inputs) { @@ -240,10 +235,9 @@ it = job.filters_.begin(); it != job.filters_.end(); it++) { if ((*it) != &sink && - (*it)->GetNextCommands().size() == 0 && - (*it)->GetCommand().SendOutputsToSink()) + (*it)->IsConnectedToSink()) { - (*it)->ConnectNext(sink); + (*it)->ConnectOutput(sink); } }