openldap/contrib/ldapc++/src/LDAPModification.h

31 lines
579 B
C
Raw Normal View History

2008-03-28 19:05:10 +08:00
// $OpenLDAP$
/*
2014-01-25 21:21:25 +08:00
* Copyright 2000-2014 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
#ifndef LDAP_MODIFICATION_H
#define LDAP_MODIFICATION_H
#include <ldap.h>
#include <LDAPAttribute.h>
class LDAPModification{
public:
enum mod_op {OP_ADD, OP_DELETE, OP_REPLACE};
LDAPModification(const LDAPAttribute& attr, mod_op op);
LDAPMod *toLDAPMod() const;
const LDAPAttribute* getAttribute() const;
mod_op getOperation() const;
private:
LDAPAttribute m_attr;
mod_op m_mod_op;
};
#endif //LDAP_MODIFICATION_H