comparison 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
comparison
equal deleted inserted replaced
1008:187ed107a59f 1009:26642cecd36d
41 { 41 {
42 friend class ServerScheduler; 42 friend class ServerScheduler;
43 43
44 private: 44 private:
45 std::list<ServerCommandInstance*> filters_; 45 std::list<ServerCommandInstance*> filters_;
46 std::list<IDynamicObject*> payloads_;
46 std::string jobId_; 47 std::string jobId_;
47 bool submitted_; 48 bool submitted_;
48 std::string description_; 49 std::string description_;
49 50
50 void CheckOrdering(); 51 void CheckOrdering();
71 { 72 {
72 return description_; 73 return description_;
73 } 74 }
74 75
75 ServerCommandInstance& AddCommand(IServerCommand* filter); 76 ServerCommandInstance& AddCommand(IServerCommand* filter);
77
78 // Take the ownership of a payload to a job. This payload will be
79 // automatically freed when the job succeeds or fails.
80 IDynamicObject& AddPayload(IDynamicObject* payload);
76 }; 81 };
77 } 82 }