2000-09-01 14:46:32 -04:00
|
|
|
/*
|
|
|
|
|
* Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
|
|
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef LDAP_ENTRY_H
|
|
|
|
|
#define LDAP_ENTRY_H
|
|
|
|
|
#include <ldap.h>
|
|
|
|
|
|
|
|
|
|
#include "LDAPAsynConnection.h"
|
|
|
|
|
#include "LDAPAttributeList.h"
|
|
|
|
|
|
|
|
|
|
class LDAPEntry{
|
|
|
|
|
|
|
|
|
|
public :
|
|
|
|
|
LDAPEntry(const LDAPEntry& entry);
|
2000-10-03 14:25:34 -04:00
|
|
|
LDAPEntry(const string& dn=string(),
|
|
|
|
|
const LDAPAttributeList *attrs=new LDAPAttributeList());
|
2000-09-01 14:46:32 -04:00
|
|
|
LDAPEntry(const LDAPAsynConnection *ld, LDAPMessage *msg);
|
|
|
|
|
~LDAPEntry();
|
2000-10-03 14:25:34 -04:00
|
|
|
void setDN(const string& dn);
|
2000-09-01 14:46:32 -04:00
|
|
|
void setAttributes(LDAPAttributeList *attrs);
|
2000-10-03 14:25:34 -04:00
|
|
|
const string getDN() const ;
|
|
|
|
|
const LDAPAttributeList* getAttributes() const;
|
2000-09-01 14:46:32 -04:00
|
|
|
friend ostream& operator << (ostream& s, const LDAPEntry& le);
|
2000-10-03 14:25:34 -04:00
|
|
|
|
|
|
|
|
private :
|
|
|
|
|
LDAPAttributeList *m_attrs;
|
|
|
|
|
string m_dn;
|
2000-09-01 14:46:32 -04:00
|
|
|
};
|
|
|
|
|
#endif //LDAP_ENTRY_H
|