]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/src/LDAPUrlList.h
56b6b8baf0350ccd0fa4b94478645ad24d8a7d14
[openldap] / contrib / ldapc++ / src / LDAPUrlList.h
1 /*
2  * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5
6 #ifndef LDAP_URL_LIST_H
7 #define LDAP_URL_LIST_H
8
9 #include <list>
10 #include "LDAPUrl.h"
11
12 typedef list<LDAPUrl> UrlList;
13
14 class LDAPUrlList{
15     typedef UrlList::const_iterator const_iterator;
16
17     public:
18         LDAPUrlList();
19         LDAPUrlList(const LDAPUrlList& urls);
20         LDAPUrlList(char** urls);
21         ~LDAPUrlList();
22
23         size_t size() const;
24         const_iterator begin() const;
25         const_iterator end() const;
26
27         void add(const LDAPUrl& url);
28
29     private :
30         UrlList m_urls;
31 };
32 #endif //LDAP_URL_LIST_H