comparison OrthancServer/DicomInstanceToStore.h @ 1285:5730f374e4e6

Access to called AET and remote AET from Lua scripts
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 03 Feb 2015 15:00:42 +0100
parents 649d47854314
children 6e7e5ed91c2d
comparison
equal deleted inserted replaced
1284:21ea32170764 1285:5730f374e4e6
142 SmartContainer<ParsedDicomFile> parsed_; 142 SmartContainer<ParsedDicomFile> parsed_;
143 SmartContainer<DicomMap> summary_; 143 SmartContainer<DicomMap> summary_;
144 SmartContainer<Json::Value> json_; 144 SmartContainer<Json::Value> json_;
145 145
146 std::string remoteAet_; 146 std::string remoteAet_;
147 std::string calledAet_;
147 ServerIndex::MetadataMap metadata_; 148 ServerIndex::MetadataMap metadata_;
148 149
149 void ComputeMissingInformation(); 150 void ComputeMissingInformation();
150 151
151 public: 152 public:
167 void SetJson(const Json::Value& json) 168 void SetJson(const Json::Value& json)
168 { 169 {
169 json_.SetConstReference(json); 170 json_.SetConstReference(json);
170 } 171 }
171 172
172 const std::string GetRemoteAet() const 173 const std::string& GetRemoteAet() const
173 { 174 {
174 return remoteAet_; 175 return remoteAet_;
175 } 176 }
176 177
177 void SetRemoteAet(const std::string& aet) 178 void SetRemoteAet(const std::string& aet)
178 { 179 {
179 remoteAet_ = aet; 180 remoteAet_ = aet;
181 }
182
183 const std::string& GetCalledAet() const
184 {
185 return calledAet_;
186 }
187
188 void SetCalledAet(const std::string& aet)
189 {
190 calledAet_ = aet;
180 } 191 }
181 192
182 void AddMetadata(ResourceType level, 193 void AddMetadata(ResourceType level,
183 MetadataType metadata, 194 MetadataType metadata,
184 const std::string& value); 195 const std::string& value);