xref: /netbsd-src/external/bsd/openldap/dist/contrib/ldapc++/src/LDAPModification.h (revision 6dffe8d42bd46273f674d7ab834e7be9b1af990e)
1 // $OpenLDAP: pkg/ldap/contrib/ldapc++/src/LDAPModification.h,v 1.3.10.1 2008/04/14 23:09:26 quanah Exp $
2 /*
3  * Copyright 2000, 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 	private:
22 		LDAPAttribute m_attr;
23 		mod_op m_mod_op;
24 
25 };
26 #endif //LDAP_MODIFICATION_H
27 
28