comparison OrthancServer/Search/Compatibility/CompatibilityDatabaseWrapper.h @ 3052:c7db469bbe8e db-changes

new class: Compatibility::DatabaseLookup
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 20 Dec 2018 16:58:52 +0100
parents d8a91acb7424
children 3638de45a08c
comparison
equal deleted inserted replaced
3051:39db63e68dcf 3052:c7db469bbe8e
35 35
36 #include "../../IDatabaseWrapper.h" 36 #include "../../IDatabaseWrapper.h"
37 37
38 namespace Orthanc 38 namespace Orthanc
39 { 39 {
40 /** 40 namespace Compatibility
41 * This is a compatibility class that contains database primitives
42 * that were used in Orthanc <= 1.5.1, and that have been removed
43 * during the optimization of the database engine.
44 **/
45 class CompatibilityDatabaseWrapper : public IDatabaseWrapper
46 { 41 {
47 public: 42 /**
48 virtual void LookupIdentifier(std::list<int64_t>& result, 43 * This is a compatibility class that contains database primitives
49 ResourceType level, 44 * that were used in Orthanc <= 1.5.1, and that have been removed
50 const DicomTag& tag, 45 * during the optimization of the database engine.
51 IdentifierConstraintType type, 46 **/
52 const std::string& value) = 0; 47 class CompatibilityDatabaseWrapper : public IDatabaseWrapper
48 {
49 public:
50 virtual void LookupIdentifier(std::list<int64_t>& result,
51 ResourceType level,
52 const DicomTag& tag,
53 IdentifierConstraintType type,
54 const std::string& value) = 0;
53 55
54 virtual void LookupIdentifierRange(std::list<int64_t>& result, 56 virtual void LookupIdentifierRange(std::list<int64_t>& result,
55 ResourceType level, 57 ResourceType level,
56 const DicomTag& tag, 58 const DicomTag& tag,
57 const std::string& start, 59 const std::string& start,
58 const std::string& end) = 0; 60 const std::string& end) = 0;
59 }; 61 };
62 }
60 } 63 }