comparison OrthancServer/ServerJobs/SplitStudyJob.h @ 2847:2da68edacab6

unit testing of SplitStudyJob
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 28 Sep 2018 19:17:04 +0200
parents d386abc18133
children 4e43e67f8ecf
comparison
equal deleted inserted replaced
2846:d386abc18133 2847:2da68edacab6
76 const std::string& GetSourceStudy() const 76 const std::string& GetSourceStudy() const
77 { 77 {
78 return sourceStudy_; 78 return sourceStudy_;
79 } 79 }
80 80
81 const std::string& GetTargetStudy() const
82 {
83 return targetStudy_;
84 }
85
86 const std::string& GetTargetStudyUid() const
87 {
88 return targetStudyUid_;
89 }
90
81 void AddSourceSeries(const std::string& series); 91 void AddSourceSeries(const std::string& series);
82 92
83 bool IsKeepSource() const 93 bool IsKeepSource() const
84 { 94 {
85 return keepSource_; 95 return keepSource_;
86 } 96 }
87 97
88 void SetKeepSource(bool keep); 98 void SetKeepSource(bool keep);
89 99
100 bool LookupTargetSeriesUid(std::string& uid,
101 const std::string& series) const;
102
90 void Replace(const DicomTag& tag, 103 void Replace(const DicomTag& tag,
91 const std::string& value); 104 const std::string& value);
92 105
106 bool LookupReplacement(std::string& value,
107 const DicomTag& tag) const;
108
93 void Remove(const DicomTag& tag); 109 void Remove(const DicomTag& tag);
94 110
111 bool IsRemoved(const DicomTag& tag) const
112 {
113 return removals_.find(tag) != removals_.end();
114 }
115
95 void SetOrigin(const DicomInstanceOrigin& origin); 116 void SetOrigin(const DicomInstanceOrigin& origin);
96 117
97 void SetOrigin(const RestApiCall& call); 118 void SetOrigin(const RestApiCall& call);
98 119
99 const DicomInstanceOrigin& GetOrigin() const 120 const DicomInstanceOrigin& GetOrigin() const