openldap/contrib/ldapc++/src/LDAPModification.h
Ralf Haferkamp 11fbe2a45c - removed char* in favour of string
- extented Referral chasing (loop detection, hop limit, Rebind)
- support for Server Controls
- fixed many bugs and memory leaks
2000-10-03 18:25:34 +00:00

26 lines
480 B
C++

/*
* Copyright 2000, 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;
private:
LDAPAttribute m_attr;
mod_op m_mod_op;
};
#endif //LDAP_MODIFICATION_H