Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

LDAPEntry.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
00003  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
00004  */
00005 
00006 
00007 #ifndef LDAP_ENTRY_H
00008 #define LDAP_ENTRY_H
00009 #include <ldap.h>
00010 
00011 #include <LDAPAsynConnection.h>
00012 #include <LDAPAttributeList.h>
00013 
00017 class LDAPEntry{
00018 
00019     public :
00023         LDAPEntry(const LDAPEntry& entry);
00024 
00031         LDAPEntry(const std::string& dn=std::string(), 
00032                 const LDAPAttributeList *attrs=new LDAPAttributeList());
00033 
00040         LDAPEntry(const LDAPAsynConnection *ld, LDAPMessage *msg);
00041 
00045         ~LDAPEntry();
00046         
00051         void setDN(const std::string& dn);
00052 
00057         void setAttributes(LDAPAttributeList *attrs);
00058 
00062         const std::string& getDN() const ;
00063 
00067         const LDAPAttributeList* getAttributes() const;
00068 
00073         friend std::ostream& operator << (std::ostream& s, const LDAPEntry& le);
00074     
00075     private :
00076 
00077         LDAPAttributeList *m_attrs;
00078         std::string m_dn;
00079 };
00080 #endif  //LDAP_ENTRY_H

Generated on Wed Jun 30 21:49:02 2004 for ldapsdk by doxygen 1.3.6