2000-09-01 14:46:32 -04:00
|
|
|
/*
|
|
|
|
|
* 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>
|
2000-10-03 14:25:34 -04:00
|
|
|
class LDAPAttribute;
|
|
|
|
|
class LDAPAsynConnection;
|
|
|
|
|
class LDAPMsg;
|
2000-09-01 14:46:32 -04:00
|
|
|
|
|
|
|
|
typedef list<LDAPAttribute> AttrList;
|
|
|
|
|
|
|
|
|
|
class LDAPAttributeList{
|
2000-10-03 14:25:34 -04:00
|
|
|
typedef AttrList::const_iterator const_iterator;
|
|
|
|
|
|
2000-09-01 14:46:32 -04:00
|
|
|
private :
|
|
|
|
|
AttrList m_attrs;
|
|
|
|
|
|
|
|
|
|
public :
|
|
|
|
|
LDAPAttributeList(const LDAPAttributeList& al);
|
2000-10-03 14:25:34 -04:00
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
* @throws LDAPException if msg does not contain an entry
|
|
|
|
|
*/
|
|
|
|
|
LDAPAttributeList(const LDAPAsynConnection *ld, LDAPMessage *msg);
|
2000-09-01 14:46:32 -04:00
|
|
|
LDAPAttributeList();
|
2000-10-03 14:25:34 -04:00
|
|
|
virtual ~LDAPAttributeList();
|
|
|
|
|
|
|
|
|
|
size_t size() const;
|
|
|
|
|
const_iterator begin() const;
|
|
|
|
|
const_iterator end() const;
|
2000-09-01 14:46:32 -04:00
|
|
|
void addAttribute(const LDAPAttribute& attr);
|
2000-10-03 14:25:34 -04:00
|
|
|
LDAPMod** toLDAPModArray() const;
|
2000-09-01 14:46:32 -04:00
|
|
|
|
|
|
|
|
friend ostream& operator << (ostream& s, const LDAPAttributeList& al);
|
|
|
|
|
};
|
|
|
|
|
#endif // LDAP_ATTRIBUTE_LIST_H
|
|
|
|
|
|