Mercurial > hg > orthanc
diff OrthancServer/Scheduler/ServerCommandInstance.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 | f3929718ea7e |
children | 6e7e5ed91c2d |
line wrap: on
line diff
--- a/OrthancServer/Scheduler/ServerCommandInstance.cpp Tue Jul 08 18:14:24 2014 +0200 +++ b/OrthancServer/Scheduler/ServerCommandInstance.cpp Wed Jul 09 16:11:44 2014 +0200 @@ -44,7 +44,7 @@ try { - if (filter_->Apply(outputs, inputs_)) + if (command_->Apply(outputs, inputs_)) { success = true; } @@ -74,12 +74,13 @@ } - ServerCommandInstance::ServerCommandInstance(IServerCommand *filter, - const std::string& jobId) : - filter_(filter), - jobId_(jobId) + ServerCommandInstance::ServerCommandInstance(IServerCommand *command, + const std::string& jobId) : + command_(command), + jobId_(jobId), + connectedToSink_(false) { - if (filter_ == NULL) + if (command_ == NULL) { throw OrthancException(ErrorCode_ParameterOutOfRange); } @@ -88,9 +89,9 @@ ServerCommandInstance::~ServerCommandInstance() { - if (filter_ != NULL) + if (command_ != NULL) { - delete filter_; + delete command_; } } }