]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/src/LDAPAttributeList.h
Initial check of the LDAP C++ SDK written by Ralf Haferkamp <rhafer@suse.de>
[openldap] / contrib / ldapc++ / src / LDAPAttributeList.h
1 /*
2  * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5
6 // $Id: LDAPAttributeList.h,v 1.5 2000/08/31 17:43:48 rhafer Exp $
7
8 #ifndef LDAP_ATTRIBUTE_LIST_H
9 #define LDAP_ATTRIBUTE_LIST_H
10
11 #include <list>
12 #include <ldap.h>
13 #include "LDAPAttribute.h"
14 #include "LDAPAsynConnection.h"
15 #include "LDAPMessage.h"
16
17 typedef list<LDAPAttribute> AttrList;
18
19 class LDAPAttributeList{
20         private :
21                 AttrList m_attrs;
22
23         public :
24                 LDAPAttributeList(const LDAPAsynConnection *ld, LDAPMessage *msg);
25                 LDAPAttributeList(const LDAPAttributeList& al);
26                 LDAPAttributeList();
27                 ~LDAPAttributeList();
28                 void addAttribute(const LDAPAttribute& attr);
29                 void find(char* name);
30                 LDAPMod** toLDAPModArray();
31                 
32                 friend ostream& operator << (ostream& s, const LDAPAttributeList& al);
33 };
34 #endif // LDAP_ATTRIBUTE_LIST_H
35