]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/src/LDAPEntry.h
918f533e8c014fe876db1d7be246d9740545aed6
[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
7 #ifndef LDAP_ENTRY_H
8 #define LDAP_ENTRY_H
9 #include <ldap.h>
10
11 #include "LDAPAsynConnection.h"
12 #include "LDAPAttributeList.h"
13
14 class LDAPEntry{
15
16         public :
17                 LDAPEntry(const LDAPEntry& entry);
18                 LDAPEntry(const string& dn=string(), 
19                 const LDAPAttributeList *attrs=new LDAPAttributeList());
20                 LDAPEntry(const LDAPAsynConnection *ld, LDAPMessage *msg);
21                 ~LDAPEntry();
22                 void setDN(const string& dn);
23                 void setAttributes(LDAPAttributeList *attrs);
24                 const string getDN() const ;
25                 const LDAPAttributeList* getAttributes() const;
26                 friend ostream& operator << (ostream& s, const LDAPEntry& le);
27         
28     private :
29                 LDAPAttributeList *m_attrs;
30                 string m_dn;
31 };
32 #endif  //LDAP_ENTRY_H