]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/src/LDAPEntry.h
Initial check of the LDAP C++ SDK written by Ralf Haferkamp <rhafer@suse.de>
[openldap] / contrib / ldapc++ / src / LDAPEntry.h
1 /*
2  * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5
6 // $Id: LDAPEntry.h,v 1.4 2000/08/31 17:43:48 rhafer Exp $
7
8 #ifndef LDAP_ENTRY_H
9 #define LDAP_ENTRY_H
10 #include <ldap.h>
11
12 #include "LDAPAsynConnection.h"
13 #include "LDAPAttributeList.h"
14
15 class LDAPEntry{
16         private :
17                 LDAPAttributeList *m_attrs;
18                 char *m_dn;
19
20         public :
21                 LDAPEntry(const LDAPEntry& entry);
22                 LDAPEntry(const char *dn, LDAPAttributeList *attrs);
23                 LDAPEntry(const LDAPAsynConnection *ld, LDAPMessage *msg);
24                 ~LDAPEntry();
25                 void setDN(const char* dn);
26                 void setAttributes(LDAPAttributeList *attrs);
27                 char* getDN();
28                 LDAPAttributeList* getAttributes();
29                 friend ostream& operator << (ostream& s, const LDAPEntry& le);
30 };
31 #endif  //LDAP_ENTRY_H