ldapsdk 0.0.1

LDAPModification.h

Go to the documentation of this file.
00001 // $OpenLDAP$
00002 /*
00003  * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
00004  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
00005  */
00006 
00007 
00008 #ifndef LDAP_MODIFICATION_H
00009 #define LDAP_MODIFICATION_H
00010 
00011 #include <ldap.h>
00012 #include <LDAPAttribute.h>
00013 
00014 class LDAPModification{
00015     public:
00016         enum mod_op {OP_ADD, OP_DELETE, OP_REPLACE};
00017 
00018         LDAPModification(const LDAPAttribute& attr, mod_op op);
00019         LDAPMod *toLDAPMod() const;
00020 
00021     private:
00022         LDAPAttribute m_attr;
00023         mod_op m_mod_op;
00024 
00025 };
00026 #endif //LDAP_MODIFICATION_H
00027