Mercurial > hg > orthanc
comparison Core/JobsEngine/SetOfCommandsJob.h @ 3658:2d90dd30858c storage-commitment
providing job ID to the IJob::Step() methods
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 10 Feb 2020 16:44:26 +0100 |
parents | 94f4a18a79cc |
children | 9201a7858cce |
comparison
equal
deleted
inserted
replaced
3657:115f82775c46 | 3658:2d90dd30858c |
---|---|
47 public: | 47 public: |
48 virtual ~ICommand() | 48 virtual ~ICommand() |
49 { | 49 { |
50 } | 50 } |
51 | 51 |
52 virtual bool Execute() = 0; | 52 virtual bool Execute(const std::string& jobId) = 0; |
53 | 53 |
54 virtual void Serialize(Json::Value& target) const = 0; | 54 virtual void Serialize(Json::Value& target) const = 0; |
55 }; | 55 }; |
56 | 56 |
57 class ICommandUnserializer : public boost::noncopyable | 57 class ICommandUnserializer : public boost::noncopyable |
124 return started_; | 124 return started_; |
125 } | 125 } |
126 | 126 |
127 const ICommand& GetCommand(size_t index) const; | 127 const ICommand& GetCommand(size_t index) const; |
128 | 128 |
129 virtual JobStepResult Step(); | 129 virtual JobStepResult Step(const std::string& jobId) ORTHANC_OVERRIDE; |
130 | 130 |
131 virtual void GetPublicContent(Json::Value& value); | 131 virtual void GetPublicContent(Json::Value& value); |
132 | 132 |
133 virtual bool Serialize(Json::Value& target); | 133 virtual bool Serialize(Json::Value& target); |
134 | 134 |