Mercurial > hg > orthanc
comparison OrthancServer/ServerJobs/ResourceModificationJob.h @ 3943:b26d25d3c1c7 transcoding
"/{patients|studies|series}/.../modify": New option "Transcode"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 18 May 2020 21:37:31 +0200 |
parents | 5b882ad2ffd0 |
children |
comparison
equal
deleted
inserted
replaced
3942:5b882ad2ffd0 | 3943:b26d25d3c1c7 |
---|---|
48 | 48 |
49 std::unique_ptr<DicomModification> modification_; | 49 std::unique_ptr<DicomModification> modification_; |
50 boost::shared_ptr<Output> output_; | 50 boost::shared_ptr<Output> output_; |
51 bool isAnonymization_; | 51 bool isAnonymization_; |
52 DicomInstanceOrigin origin_; | 52 DicomInstanceOrigin origin_; |
53 bool transcode_; | |
54 DicomTransferSyntax transferSyntax_; | |
53 | 55 |
54 protected: | 56 protected: |
55 virtual bool HandleInstance(const std::string& instance); | 57 virtual bool HandleInstance(const std::string& instance); |
56 | 58 |
57 public: | 59 public: |
58 ResourceModificationJob(ServerContext& context) : | 60 ResourceModificationJob(ServerContext& context); |
59 CleaningInstancesJob(context, true /* by default, keep source */), | |
60 isAnonymization_(false) | |
61 { | |
62 } | |
63 | 61 |
64 ResourceModificationJob(ServerContext& context, | 62 ResourceModificationJob(ServerContext& context, |
65 const Json::Value& serialized); | 63 const Json::Value& serialized); |
66 | 64 |
67 void SetModification(DicomModification* modification, // Takes ownership | 65 void SetModification(DicomModification* modification, // Takes ownership |
82 const DicomInstanceOrigin& GetOrigin() const | 80 const DicomInstanceOrigin& GetOrigin() const |
83 { | 81 { |
84 return origin_; | 82 return origin_; |
85 } | 83 } |
86 | 84 |
85 bool IsTranscode() const | |
86 { | |
87 return transcode_; | |
88 } | |
89 | |
90 DicomTransferSyntax GetTransferSyntax() const; | |
91 | |
92 void SetTranscode(DicomTransferSyntax syntax); | |
93 | |
94 void SetTranscode(const std::string& transferSyntaxUid); | |
95 | |
96 void ClearTranscode(); | |
97 | |
87 virtual void Stop(JobStopReason reason) | 98 virtual void Stop(JobStopReason reason) |
88 { | 99 { |
89 } | 100 } |
90 | 101 |
91 virtual void GetJobType(std::string& target) | 102 virtual void GetJobType(std::string& target) |