Mercurial > hg > orthanc
comparison Core/JobsEngine/JobsRegistry.h @ 2648:e1893d31652a jobs
serialization of JobHandler
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 31 May 2018 18:44:05 +0200 |
parents | 8da2cffc2378 |
children | 5fa2f2ce74f0 |
comparison
equal
deleted
inserted
replaced
2647:73d7d95dd75e | 2648:e1893d31652a |
---|---|
40 #if ORTHANC_SANDBOXED == 1 | 40 #if ORTHANC_SANDBOXED == 1 |
41 # error The job engine cannot be used in sandboxed environments | 41 # error The job engine cannot be used in sandboxed environments |
42 #endif | 42 #endif |
43 | 43 |
44 #include "JobInfo.h" | 44 #include "JobInfo.h" |
45 #include "IJobUnserializer.h" | |
45 | 46 |
46 #include <list> | 47 #include <list> |
47 #include <set> | 48 #include <set> |
48 #include <queue> | 49 #include <queue> |
49 #include <boost/thread/mutex.hpp> | 50 #include <boost/thread/mutex.hpp> |
124 | 125 |
125 void ListJobs(std::set<std::string>& target); | 126 void ListJobs(std::set<std::string>& target); |
126 | 127 |
127 bool GetJobInfo(JobInfo& target, | 128 bool GetJobInfo(JobInfo& target, |
128 const std::string& id); | 129 const std::string& id); |
130 | |
131 void Serialize(Json::Value& target); | |
129 | 132 |
130 void Submit(std::string& id, | 133 void Submit(std::string& id, |
131 IJob* job, // Takes ownership | 134 IJob* job, // Takes ownership |
132 int priority); | 135 int priority); |
133 | 136 |