LDAPModification.h 579 Bytes
Newer Older
1
// $OpenLDAP$
2
/*
Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
3
 * Copyright 2000-2018 The OpenLDAP Foundation, All Rights Reserved.
4
5
6
7
8
9
10
11
 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
 */


#ifndef LDAP_MODIFICATION_H
#define LDAP_MODIFICATION_H

#include <ldap.h>
12
#include <LDAPAttribute.h>
13
14
15
16
17
18
19
20

class LDAPModification{
	public:
		enum mod_op {OP_ADD, OP_DELETE, OP_REPLACE};

		LDAPModification(const LDAPAttribute& attr, mod_op op);
		LDAPMod *toLDAPMod() const;

21
22
23
		const LDAPAttribute* getAttribute() const;
		mod_op getOperation() const;

24
25
26
27
28
29
30
	private:
		LDAPAttribute m_attr;
		mod_op m_mod_op;

};
#endif //LDAP_MODIFICATION_H