]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/src/LDAPModification.h
Use experimental OIDs for saslAuth attributes and hide 'em
[openldap] / contrib / ldapc++ / src / LDAPModification.h
1 /*
2  * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5
6
7 #ifndef LDAP_MODIFICATION_H
8 #define LDAP_MODIFICATION_H
9
10 #include <ldap.h>
11 #include <LDAPAttribute.h>
12
13 class LDAPModification{
14         public:
15                 enum mod_op {OP_ADD, OP_DELETE, OP_REPLACE};
16
17                 LDAPModification(const LDAPAttribute& attr, mod_op op);
18                 LDAPMod *toLDAPMod() const;
19
20         private:
21                 LDAPAttribute m_attr;
22                 mod_op m_mod_op;
23
24 };
25 #endif //LDAP_MODIFICATION_H
26