Mercurial > hg > orthanc
comparison OrthancServer/IDatabaseWrapper.h @ 3082:847a0ed92654 db-changes
new extension for database plugin SDK: createInstance
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 04 Jan 2019 13:52:34 +0100 |
parents | 1a75595d8e44 |
children | 683d572424b6 |
comparison
equal
deleted
inserted
replaced
3081:2e5970ddcfeb | 3082:847a0ed92654 |
---|---|
226 std::list<std::string>* instancesId, // Can be NULL if not needed | 226 std::list<std::string>* instancesId, // Can be NULL if not needed |
227 const std::vector<DatabaseConstraint>& lookup, | 227 const std::vector<DatabaseConstraint>& lookup, |
228 ResourceType queryLevel, | 228 ResourceType queryLevel, |
229 size_t limit) = 0; | 229 size_t limit) = 0; |
230 | 230 |
231 // Returns "true" iff. the instance already exists *and* | 231 // Returns "true" iff. the instance already exists. If "false" is |
232 // "overwrite" is "false". If "false" is returned, the content of | 232 // returned, the content of "result" is undefined, but |
233 // "result" is undefined, but "instanceId" must be properly set. | 233 // "instanceId" must be properly set. |
234 virtual bool CreateInstance(CreateInstanceResult& result, /* out */ | 234 virtual bool CreateInstance(CreateInstanceResult& result, /* out */ |
235 int64_t& instanceId, /* out */ | 235 int64_t& instanceId, /* out */ |
236 const std::string& patient, | 236 const std::string& patient, |
237 const std::string& study, | 237 const std::string& study, |
238 const std::string& series, | 238 const std::string& series, |
239 const std::string& instance, | 239 const std::string& instance) = 0; |
240 bool overwrite) = 0; | |
241 }; | 240 }; |
242 } | 241 } |