openldap/contrib/ldapc++/src/LDAPAttributeList.h
Ralf Haferkamp 11fbe2a45c - removed char* in favour of string
- extented Referral chasing (loop detection, hop limit, Rebind)
- support for Server Controls
- fixed many bugs and memory leaks
2000-10-03 18:25:34 +00:00

42 lines
999 B
C++

/*
* Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
#ifndef LDAP_ATTRIBUTE_LIST_H
#define LDAP_ATTRIBUTE_LIST_H
#include <list>
class LDAPAttribute;
class LDAPAsynConnection;
class LDAPMsg;
typedef list<LDAPAttribute> AttrList;
class LDAPAttributeList{
typedef AttrList::const_iterator const_iterator;
private :
AttrList m_attrs;
public :
LDAPAttributeList(const LDAPAttributeList& al);
/*!
* @throws LDAPException if msg does not contain an entry
*/
LDAPAttributeList(const LDAPAsynConnection *ld, LDAPMessage *msg);
LDAPAttributeList();
virtual ~LDAPAttributeList();
size_t size() const;
const_iterator begin() const;
const_iterator end() const;
void addAttribute(const LDAPAttribute& attr);
LDAPMod** toLDAPModArray() const;
friend ostream& operator << (ostream& s, const LDAPAttributeList& al);
};
#endif // LDAP_ATTRIBUTE_LIST_H