Mercurial > hg > orthanc
comparison OrthancServer/Sources/Search/DatabaseConstraint.h @ 5682:fd4c5e064cbe find-refactoring
started refactoring of ServerContext::Apply()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 09 Jul 2024 11:17:34 +0200 |
parents | 77875b51cf95 |
children | 708952bd869c |
comparison
equal
deleted
inserted
replaced
5681:77875b51cf95 | 5682:fd4c5e064cbe |
---|---|
80 | 80 |
81 | 81 |
82 // This class is also used by the "orthanc-databases" project | 82 // This class is also used by the "orthanc-databases" project |
83 class DatabaseConstraint : public boost::noncopyable | 83 class DatabaseConstraint : public boost::noncopyable |
84 { | 84 { |
85 public: | |
86 enum KeyType // used for ordering and filters | |
87 { | |
88 KeyType_DicomTag, | |
89 KeyType_Metadata | |
90 }; | |
91 | |
92 private: | 85 private: |
93 KeyType keyType_; | |
94 ResourceType level_; | 86 ResourceType level_; |
95 DicomTag tag_; | 87 DicomTag tag_; |
96 uint32_t metadataType_; // TODO: implement | |
97 bool isIdentifier_; | 88 bool isIdentifier_; |
98 ConstraintType constraintType_; | 89 ConstraintType constraintType_; |
99 std::vector<std::string> values_; | 90 std::vector<std::string> values_; |
100 bool caseSensitive_; | 91 bool caseSensitive_; |
101 bool mandatory_; | 92 bool mandatory_; |