Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
usLDAPFilter.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef USLDAPFILTER_H
14 #define USLDAPFILTER_H
15 
16 #include <usServiceProperties.h>
17 
18 #include <usSharedData.h>
19 
20 namespace us {
21 
22 class LDAPFilterData;
23 class ServiceReferenceBase;
24 
46 
47 private:
48 
50 
51 public:
52 
62 
76  LDAPFilter(const std::string& filter);
77 
82  LDAPFilter(const LDAPFilter& other);
83 
86 
88  operator bool_type() const;
89 
102  bool Match(const ServiceReferenceBase& reference) const;
103 
114  bool Match(const ServiceProperties& dictionary) const;
115 
126  bool MatchCase(const ServiceProperties& dictionary) const;
127 
136  std::string ToString() const;
137 
149  bool operator==(const LDAPFilter& other) const;
150 
156  LDAPFilter& operator=(const LDAPFilter& filter);
157 
158 protected:
159 
161 
162 };
163 
164 }
165 
169 MITKCPPMICROSERVICES_EXPORT std::ostream& operator<<(std::ostream& os, const us::LDAPFilter& filter);
170 
171 #endif // USLDAPFILTER_H
#define MITKCPPMICROSERVICES_EXPORT
An RFC 1960-based Filter.
Definition: usLDAPFilter.h:45
bool MatchCase(const ServiceProperties &dictionary) const
Filter using a ServiceProperties. This LDAPFilter is executed using the specified ServiceProperties's...
bool Match(const ServiceProperties &dictionary) const
Filter using a ServiceProperties object with case insensitive key lookup. This LDAPFilter is executed...
LDAPFilter(const LDAPFilter &other)
Copy constructor.
LDAPFilter()
Creates in invalid LDAPFilter object. Test the validity by using the boolean conversion operator.
LDAPFilter & operator=(const LDAPFilter &filter)
Assignment operator.
~LDAPFilter()
Destructor.
bool Match(const ServiceReferenceBase &reference) const
Filter using a service's properties.
bool operator==(const LDAPFilter &other) const
Compares this LDAPFilter to another LDAPFilter.
std::string ToString() const
Returns this LDAPFilter's filter string.
LDAPFilter(const std::string &filter)
Creates a LDAPFilter object. This LDAPFilter object may be used to match a ServiceReference object or...
SharedDataPointer< LDAPFilterData > d
Definition: usLDAPFilter.h:160
std::unordered_map< std::string, Any > ServiceProperties
MITKCPPMICROSERVICES_EXPORT std::ostream & operator<<(std::ostream &os, const us::LDAPFilter &filter)