]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/src/LDAPModification.h
Initial check of the LDAP C++ SDK written by Ralf Haferkamp <rhafer@suse.de>
[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 // $Id: LDAPModification.h,v 1.3 2000/08/31 17:43:49 rhafer Exp $
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