3 * Copyright 2000-2011 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
8 #ifndef LDAP_MODIFICATION_H
9 #define LDAP_MODIFICATION_H
12 #include <LDAPAttribute.h>
14 class LDAPModification{
16 enum mod_op {OP_ADD, OP_DELETE, OP_REPLACE};
18 LDAPModification(const LDAPAttribute& attr, mod_op op);
19 LDAPMod *toLDAPMod() const;
21 const LDAPAttribute* getAttribute() const;
22 mod_op getOperation() const;
29 #endif //LDAP_MODIFICATION_H