00001 /* 00002 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved. 00003 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file 00004 */ 00005 00006 #ifndef LDAP_URL_LIST_H 00007 #define LDAP_URL_LIST_H 00008 00009 #include <list> 00010 #include <LDAPUrl.h> 00011 00015 class LDAPUrlList{ 00016 typedef std::list<LDAPUrl> ListType; 00017 00018 public: 00019 typedef ListType::const_iterator const_iterator; 00020 00024 LDAPUrlList(); 00025 00029 LDAPUrlList(const LDAPUrlList& urls); 00030 00038 LDAPUrlList(char** urls); 00039 00043 ~LDAPUrlList(); 00044 00049 size_t size() const; 00050 00055 bool empty() const; 00056 00060 const_iterator begin() const; 00061 00066 const_iterator end() const; 00067 00072 void add(const LDAPUrl& url); 00073 00074 private : 00075 ListType m_urls; 00076 }; 00077 #endif //LDAP_URL_LIST_H