]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/src/LDAPReferral.cpp
Initial check of the LDAP C++ SDK written by Ralf Haferkamp <rhafer@suse.de>
[openldap] / contrib / ldapc++ / src / LDAPReferral.cpp
1 /*
2  * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5
6 // $Id: LDAPReferral.cpp,v 1.8 2000/08/31 17:43:49 rhafer Exp $
7
8 #include <iostream>
9 #include "LDAPException.h"
10 #include "LDAPReferral.h"
11 #include "LDAPRequest.h"
12 #include "LDAPUrl.h"
13
14 LDAPReferral::LDAPReferral() {
15 }
16
17 LDAPReferral::~LDAPReferral(){
18     LDAPUrlList::const_iterator i;
19     for(i=m_urlList.begin(); i!=m_urlList.end(); i++){
20         delete *i;
21     }
22 }
23
24 LDAPUrl* LDAPReferral::getURL(){
25     return m_urlList.front();
26 }
27