comparison OrthancServer/Search/IFindConstraint.h @ 1756:03b030680e3d db-changes

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 Oct 2015 12:14:06 +0100
parents 55d52567bebb
children 91a5d39ec665
comparison
equal deleted inserted replaced
1755:39c37a994b2f 1756:03b030680e3d
36 36
37 namespace Orthanc 37 namespace Orthanc
38 { 38 {
39 class IFindConstraint : public boost::noncopyable 39 class IFindConstraint : public boost::noncopyable
40 { 40 {
41 private:
42 DicomTag tag_;
43
44 public: 41 public:
45 IFindConstraint(const DicomTag& tag) : tag_(tag)
46 {
47 }
48
49 virtual ~IFindConstraint() 42 virtual ~IFindConstraint()
50 { 43 {
51 } 44 }
52 45
53 const DicomTag& GetTag() const
54 {
55 return tag_;
56 }
57
58 virtual IFindConstraint* Clone() const = 0; 46 virtual IFindConstraint* Clone() const = 0;
59 47
60 virtual void Setup(LookupIdentifierQuery& lookup) const = 0; 48 virtual void Setup(LookupIdentifierQuery& lookup,
49 const DicomTag& tag) const = 0;
61 50
62 virtual bool Match(const std::string& value) const = 0; 51 virtual bool Match(const std::string& value) const = 0;
63 }; 52 };
64 } 53 }