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