Back to index

openldap  2.4.31
LDAPModification.h
Go to the documentation of this file.
00001 // $OpenLDAP$
00002 /*
00003  * Copyright 2000-2012 The 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               const LDAPAttribute* getAttribute() const;
00022               mod_op getOperation() const;
00023 
00024        private:
00025               LDAPAttribute m_attr;
00026               mod_op m_mod_op;
00027 
00028 };
00029 #endif //LDAP_MODIFICATION_H
00030