Mercurial > hg > orthanc
comparison OrthancServer/Search/ValueConstraint.cpp @ 3036:8fd203510d8b db-changes
moving LookupIdentifierQuery to the graveyard
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 19 Dec 2018 16:27:07 +0100 |
parents | 878b59270859 |
children | ce272138f15e |
comparison
equal
deleted
inserted
replaced
3034:54e422fe31ce | 3036:8fd203510d8b |
---|---|
53 value_ = Toolbox::ToUpperCaseWithAccents(value); | 53 value_ = Toolbox::ToUpperCaseWithAccents(value); |
54 } | 54 } |
55 } | 55 } |
56 | 56 |
57 | 57 |
58 void ValueConstraint::Setup(LookupIdentifierQuery& lookup, | |
59 const DicomTag& tag) const | |
60 { | |
61 lookup.AddConstraint(tag, IdentifierConstraintType_Equal, value_); | |
62 } | |
63 | |
64 bool ValueConstraint::Match(const std::string& value) const | 58 bool ValueConstraint::Match(const std::string& value) const |
65 { | 59 { |
66 if (isCaseSensitive_) | 60 if (isCaseSensitive_) |
67 { | 61 { |
68 return value_ == value; | 62 return value_ == value; |