2 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
7 #ifndef LDAP_ATTRIBUTE_LIST_H
8 #define LDAP_ATTRIBUTE_LIST_H
12 class LDAPAsynConnection;
15 typedef list<LDAPAttribute> AttrList;
17 class LDAPAttributeList{
18 typedef AttrList::const_iterator const_iterator;
24 LDAPAttributeList(const LDAPAttributeList& al);
27 * @throws LDAPException if msg does not contain an entry
29 LDAPAttributeList(const LDAPAsynConnection *ld, LDAPMessage *msg);
31 virtual ~LDAPAttributeList();
34 const_iterator begin() const;
35 const_iterator end() const;
36 void addAttribute(const LDAPAttribute& attr);
37 LDAPMod** toLDAPModArray() const;
39 friend ostream& operator << (ostream& s, const LDAPAttributeList& al);
41 #endif // LDAP_ATTRIBUTE_LIST_H