Mercurial > hg > orthanc-databases
comparison Resources/Orthanc/Databases/ISqlLookupFormatter.h @ 401:a8774581adfc db-protobuf
replaced "WithLabels" and "WithoutLabels", by "Labels" and "LabelsConstraint"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 07 Apr 2023 22:32:15 +0200 |
parents | 8dedfd982b83 |
children | de6de66d70b2 |
comparison
equal
deleted
inserted
replaced
400:897253c21208 | 401:a8774581adfc |
---|---|
33 | 33 |
34 namespace Orthanc | 34 namespace Orthanc |
35 { | 35 { |
36 class DatabaseConstraint; | 36 class DatabaseConstraint; |
37 | 37 |
38 enum LabelsConstraint | |
39 { | |
40 LabelsConstraint_All, | |
41 LabelsConstraint_Any, | |
42 LabelsConstraint_None | |
43 }; | |
44 | |
38 // This class is also used by the "orthanc-databases" project | 45 // This class is also used by the "orthanc-databases" project |
39 class ISqlLookupFormatter : public boost::noncopyable | 46 class ISqlLookupFormatter : public boost::noncopyable |
40 { | 47 { |
41 public: | 48 public: |
42 virtual ~ISqlLookupFormatter() | 49 virtual ~ISqlLookupFormatter() |
58 | 65 |
59 static void Apply(std::string& sql, | 66 static void Apply(std::string& sql, |
60 ISqlLookupFormatter& formatter, | 67 ISqlLookupFormatter& formatter, |
61 const std::vector<DatabaseConstraint>& lookup, | 68 const std::vector<DatabaseConstraint>& lookup, |
62 ResourceType queryLevel, | 69 ResourceType queryLevel, |
63 const std::set<std::string>& withLabels, // New in Orthanc 1.12.0 | 70 const std::set<std::string>& labels, // New in Orthanc 1.12.0 |
64 const std::set<std::string>& withoutLabels, // New in Orthanc 1.12.0 | 71 LabelsConstraint labelsConstraint, // New in Orthanc 1.12.0 |
65 size_t limit); | 72 size_t limit); |
66 }; | 73 }; |
67 } | 74 } |