Mercurial > hg > orthanc
diff OrthancServer/Scheduler/ServerJob.h @ 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/ServerJob.h Tue Jul 08 18:14:24 2014 +0200 +++ b/OrthancServer/Scheduler/ServerJob.h Wed Jul 09 16:11:44 2014 +0200 @@ -43,6 +43,7 @@ private: std::list<ServerCommandInstance*> filters_; + std::list<IDynamicObject*> payloads_; std::string jobId_; bool submitted_; std::string description_; @@ -73,5 +74,9 @@ } ServerCommandInstance& AddCommand(IServerCommand* filter); + + // Take the ownership of a payload to a job. This payload will be + // automatically freed when the job succeeds or fails. + IDynamicObject& AddPayload(IDynamicObject* payload); }; }