xref: /netbsd-src/external/bsd/openldap/dist/contrib/ldapc++/src/LDAPModification.h (revision b1c86f5f087524e68db12794ee9c3e3da1ab17a0)
1 /*	$NetBSD: LDAPModification.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $	*/
2 
3 // OpenLDAP: pkg/ldap/contrib/ldapc++/src/LDAPModification.h,v 1.3.10.1 2008/04/14 23:09:26 quanah Exp
4 /*
5  * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
6  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
7  */
8 
9 
10 #ifndef LDAP_MODIFICATION_H
11 #define LDAP_MODIFICATION_H
12 
13 #include <ldap.h>
14 #include <LDAPAttribute.h>
15 
16 class LDAPModification{
17 	public:
18 		enum mod_op {OP_ADD, OP_DELETE, OP_REPLACE};
19 
20 		LDAPModification(const LDAPAttribute& attr, mod_op op);
21 		LDAPMod *toLDAPMod() const;
22 
23 	private:
24 		LDAPAttribute m_attr;
25 		mod_op m_mod_op;
26 
27 };
28 #endif //LDAP_MODIFICATION_H
29 
30