openldap/contrib/ldapc++/src/LDAPSearchResult.cpp
Kurt Zeilenga 84d0e26234 Initial check of the LDAP C++ SDK written by Ralf Haferkamp <rhafer@suse.de>
Copyright notices have been adjusted per on-file OpenLDAP Contributor
Assignment Agreement.
2000-09-01 18:46:32 +00:00

29 lines
764 B
C++

/*
* Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
// $Id: LDAPSearchResult.cpp,v 1.6 2000/08/31 17:43:49 rhafer Exp $
#include <iostream>
#include "debug.h"
#include"LDAPSearchResult.h"
#include "LDAPRequest.h"
LDAPSearchResult::LDAPSearchResult(LDAPRequest *req, LDAPMessage *msg)
: LDAPMsg(msg){
DEBUG(LDAP_DEBUG_TRACE,"LDAPSearchResult::LDAPSearchResult()" << endl);
entry = new LDAPEntry(req->getConnection(), msg);
}
LDAPSearchResult::~LDAPSearchResult(){
DEBUG(LDAP_DEBUG_TRACE,"LDAPSearchResult::~LDAPSearchResult()" << endl);
delete entry;
}
LDAPEntry* LDAPSearchResult::getEntry(){
DEBUG(LDAP_DEBUG_TRACE,"LDAPSearchResult::getEntry()" << endl);
return entry;
}