Mercurial > hg > orthanc
comparison OrthancServer/Database/IDatabaseWrapper.h @ 3116:0fa7181ac4e5 db-changes
conrt
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 12 Jan 2019 11:08:53 +0100 |
parents | 2e1711f80f74 |
children | 4bbadcd03966 |
comparison
equal
deleted
inserted
replaced
3115:2c108461d409 | 3116:0fa7181ac4e5 |
---|---|
219 std::list<std::string>* instancesId, // Can be NULL if not needed | 219 std::list<std::string>* instancesId, // Can be NULL if not needed |
220 const std::vector<DatabaseConstraint>& lookup, | 220 const std::vector<DatabaseConstraint>& lookup, |
221 ResourceType queryLevel, | 221 ResourceType queryLevel, |
222 size_t limit) = 0; | 222 size_t limit) = 0; |
223 | 223 |
224 // Returns "true" iff. the instance already exists. If "false" is | 224 // Returns "true" iff. the instance is new and has been inserted |
225 // returned, the content of "result" is undefined, but | 225 // into the database. If "false" is returned, the content of |
226 // "instanceId" must be properly set. | 226 // "result" is undefined, but "instanceId" must be properly |
227 // set. This method must also tag the parent patient as the most | |
228 // recent in the patient recycling order if it is not protected | |
229 // (so as to fix issue #58). | |
227 virtual bool CreateInstance(CreateInstanceResult& result, /* out */ | 230 virtual bool CreateInstance(CreateInstanceResult& result, /* out */ |
228 int64_t& instanceId, /* out */ | 231 int64_t& instanceId, /* out */ |
229 const std::string& patient, | 232 const std::string& patient, |
230 const std::string& study, | 233 const std::string& study, |
231 const std::string& series, | 234 const std::string& series, |