Mercurial > hg > orthanc
comparison Plugins/Engine/OrthancPluginDatabase.h @ 2884:497a637366b4 db-changes
integration mainline->db-changes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 12 Oct 2018 15:18:10 +0200 |
parents | e583478e0c6c |
children | 8336204d95dc 4e43e67f8ecf |
comparison
equal
deleted
inserted
replaced
1762:2b91363cc1d1 | 2884:497a637366b4 |
---|---|
1 /** | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | 2 * Orthanc - A Lightweight, RESTful DICOM Store |
3 * Copyright (C) 2012-2015 Sebastien Jodogne, Medical Physics | 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
4 * Department, University Hospital of Liege, Belgium | 4 * Department, University Hospital of Liege, Belgium |
5 * Copyright (C) 2017-2018 Osimis S.A., Belgium | |
5 * | 6 * |
6 * This program is free software: you can redistribute it and/or | 7 * This program is free software: you can redistribute it and/or |
7 * modify it under the terms of the GNU General Public License as | 8 * modify it under the terms of the GNU General Public License as |
8 * published by the Free Software Foundation, either version 3 of the | 9 * published by the Free Software Foundation, either version 3 of the |
9 * License, or (at your option) any later version. | 10 * License, or (at your option) any later version. |
30 **/ | 31 **/ |
31 | 32 |
32 | 33 |
33 #pragma once | 34 #pragma once |
34 | 35 |
35 #if ORTHANC_PLUGINS_ENABLED == 1 | 36 #if ORTHANC_ENABLE_PLUGINS == 1 |
36 | 37 |
38 #include "../../Core/SharedLibrary.h" | |
37 #include "../../OrthancServer/IDatabaseWrapper.h" | 39 #include "../../OrthancServer/IDatabaseWrapper.h" |
38 #include "../Include/orthanc/OrthancCDatabasePlugin.h" | 40 #include "../Include/orthanc/OrthancCDatabasePlugin.h" |
39 #include "PluginsErrorDictionary.h" | 41 #include "PluginsErrorDictionary.h" |
40 #include "SharedLibrary.h" | |
41 | 42 |
42 namespace Orthanc | 43 namespace Orthanc |
43 { | 44 { |
44 class OrthancPluginDatabase : public IDatabaseWrapper | 45 class OrthancPluginDatabase : public IDatabaseWrapper |
45 { | 46 { |
210 ResourceType level, | 211 ResourceType level, |
211 const DicomTag& tag, | 212 const DicomTag& tag, |
212 IdentifierConstraintType type, | 213 IdentifierConstraintType type, |
213 const std::string& value); | 214 const std::string& value); |
214 | 215 |
216 virtual void LookupIdentifierRange(std::list<int64_t>& result, | |
217 ResourceType level, | |
218 const DicomTag& tag, | |
219 const std::string& start, | |
220 const std::string& end); | |
221 | |
215 virtual bool LookupMetadata(std::string& target, | 222 virtual bool LookupMetadata(std::string& target, |
216 int64_t id, | 223 int64_t id, |
217 MetadataType type); | 224 MetadataType type); |
218 | 225 |
219 virtual bool LookupParent(int64_t& parentId, | 226 virtual bool LookupParent(int64_t& parentId, |