Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
us::LDAPProp Class Reference

#include <usLDAPProp.h>

Public Member Functions

 LDAPProp (const std::string &property)
 
 operator LDAPPropExpr () const
 
LDAPPropExpr operator! () const
 
LDAPPropExpr operator== (const std::string &s) const
 
LDAPPropExpr operator== (const us::Any &s) const
 
template<class T >
LDAPPropExpr operator== (const T &s) const
 
LDAPPropExpr operator!= (const std::string &s) const
 
LDAPPropExpr operator!= (const us::Any &s) const
 
template<class T >
LDAPPropExpr operator!= (const T &s) const
 
LDAPPropExpr operator>= (const std::string &s) const
 
LDAPPropExpr operator>= (const us::Any &s) const
 
template<class T >
LDAPPropExpr operator>= (const T &s) const
 
LDAPPropExpr operator<= (const std::string &s) const
 
LDAPPropExpr operator<= (const us::Any &s) const
 
template<class T >
LDAPPropExpr operator<= (const T &s) const
 
LDAPPropExpr Approx (const std::string &s) const
 
LDAPPropExpr Approx (const us::Any &s) const
 
template<class T >
LDAPPropExpr Approx (const T &s) const
 

Detailed Description

A fluent API for creating LDAP filter strings.

Examples for creating LDAPFilter objects:

// This creates the filter "(&(name=Ben)(!(count=1)))"
LDAPFilter filter(LDAPProp("name") == "Ben" && !(LDAPProp("count") == 1));
// This creates the filter "(|(presence=*)(!(absence=*)))"
LDAPFilter filter(LDAPProp("presence") || !LDAPProp("absence"));
// This creates the filter "(&(ge>=-3)(approx~=hi))"
LDAPFilter filter(LDAPProp("ge") >= -3 && LDAPProp("approx").Approx("hi"));
See also
LDAPFilter

Definition at line 75 of file usLDAPProp.h.

Constructor & Destructor Documentation

us::LDAPProp::LDAPProp ( const std::string &  property)

Create a LDAPProp instance for the named LDAP property.

Parameters
propertyThe name of the LDAP property.

Definition at line 51 of file usLDAPProp.cpp.

Member Function Documentation

LDAPPropExpr us::LDAPProp::Approx ( const std::string &  s) const

LDAP approximation '~='

Parameters
sA type convertible to std::string.
Returns
A LDAP expression object.

Definition at line 111 of file usLDAPProp.cpp.

Referenced by Approx().

LDAPPropExpr us::LDAPProp::Approx ( const us::Any s) const

LDAP approximation '~='

Parameters
sA type convertible to std::string.
Returns
A LDAP expression object.

Definition at line 117 of file usLDAPProp.cpp.

References Approx(), and us::Any::ToString().

template<class T >
LDAPPropExpr us::LDAPProp::Approx ( const T &  s) const
inline

LDAP approximation '~='

Parameters
sA type convertible to std::string.
Returns
A LDAP expression object.

Definition at line 192 of file usLDAPProp.h.

us::LDAPProp::operator LDAPPropExpr ( ) const

Definition at line 68 of file usLDAPProp.cpp.

LDAPPropExpr us::LDAPProp::operator! ( ) const

States the absence of the LDAP property.

Returns
A LDAP expression object.

Definition at line 73 of file usLDAPProp.cpp.

LDAPPropExpr us::LDAPProp::operator!= ( const std::string &  s) const

Convenience operator for LDAP inequality.

Writing either

LDAPProp("attr") != "val"

or

!(LDAPProp("attr") == "val")

leads to the same string "(!(attr=val))".

Parameters
sA type convertible to std::string.
Returns
A LDAP expression object.

Definition at line 78 of file usLDAPProp.cpp.

Referenced by operator!=().

LDAPPropExpr us::LDAPProp::operator!= ( const us::Any s) const

Convenience operator for LDAP inequality.

Writing either

LDAPProp("attr") != "val"

or

!(LDAPProp("attr") == "val")

leads to the same string "(!(attr=val))".

Parameters
sA type convertible to std::string.
Returns
A LDAP expression object.

Definition at line 84 of file usLDAPProp.cpp.

References operator!=(), and us::Any::ToString().

template<class T >
LDAPPropExpr us::LDAPProp::operator!= ( const T &  s) const
inline

Convenience operator for LDAP inequality.

Writing either

LDAPProp("attr") != "val"

or

!(LDAPProp("attr") == "val")

leads to the same string "(!(attr=val))".

Parameters
sA type convertible to std::string.
Returns
A LDAP expression object.

Definition at line 135 of file usLDAPProp.h.

References mitk::operator!=().

LDAPPropExpr us::LDAPProp::operator<= ( const std::string &  s) const

LDAP less or equal '<='

Parameters
sA type convertible to std::string.
Returns
A LDAP expression object.

Definition at line 100 of file usLDAPProp.cpp.

Referenced by operator<=().

LDAPPropExpr us::LDAPProp::operator<= ( const us::Any s) const

LDAP less or equal '<='

Parameters
sA type convertible to std::string.
Returns
A LDAP expression object.

Definition at line 106 of file usLDAPProp.cpp.

References operator<=(), and us::Any::ToString().

template<class T >
LDAPPropExpr us::LDAPProp::operator<= ( const T &  s) const
inline

LDAP less or equal '<='

Parameters
sA type convertible to std::string.
Returns
A LDAP expression object.

Definition at line 173 of file usLDAPProp.h.

LDAPPropExpr us::LDAPProp::operator== ( const std::string &  s) const

LDAP equality '='

Parameters
sA type convertible to std::string.
Returns
A LDAP expression object.

Definition at line 57 of file usLDAPProp.cpp.

Referenced by operator==().

LDAPPropExpr us::LDAPProp::operator== ( const us::Any s) const

LDAP equality '='

Parameters
sA type convertible to std::string.
Returns
A LDAP expression object.

Definition at line 63 of file usLDAPProp.cpp.

References operator==(), and us::Any::ToString().

template<class T >
LDAPPropExpr us::LDAPProp::operator== ( const T &  s) const
inline

LDAP equality '='

Parameters
sA type convertible to std::string.
Returns
A LDAP expression object.

Definition at line 97 of file usLDAPProp.h.

LDAPPropExpr us::LDAPProp::operator>= ( const std::string &  s) const

LDAP greater or equal '>='

Parameters
sA type convertible to std::string.
Returns
A LDAP expression object.

Definition at line 89 of file usLDAPProp.cpp.

Referenced by operator>=().

LDAPPropExpr us::LDAPProp::operator>= ( const us::Any s) const

LDAP greater or equal '>='

Parameters
sA type convertible to std::string.
Returns
A LDAP expression object.

Definition at line 95 of file usLDAPProp.cpp.

References operator>=(), and us::Any::ToString().

template<class T >
LDAPPropExpr us::LDAPProp::operator>= ( const T &  s) const
inline

LDAP greater or equal '>='

Parameters
sA type convertible to std::string.
Returns
A LDAP expression object.

Definition at line 154 of file usLDAPProp.h.


The documentation for this class was generated from the following files: