2 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
6 #ifndef LDAP_SEARCH_RESULTS_H
7 #define LDAP_SEARCH_RESULTS_H
10 #include <LDAPEntryList.h>
11 #include <LDAPMessage.h>
12 #include <LDAPMessageQueue.h>
13 #include <LDAPReferenceList.h>
14 #include <LDAPSearchReference.h>
19 * The class stores the results of a synchronous SEARCH-Operation
21 class LDAPSearchResults{
29 * For internal use only.
31 * This method read Search result entries from a
32 * LDAPMessageQueue-object.
33 * @param msg The message queue to read
35 LDAPResult* readMessageQueue(LDAPMessageQueue* msg);
38 * The methode is used by the client-application to read the
39 * result entries of the SEARCH-Operation. Every call of this
40 * method returns one entry. If all entries were read it return 0.
41 * @throws LDAPReferralException If a Search Reference was
42 * returned by the server
43 * @returns A LDAPEntry-object as a result of a SEARCH-Operation or
44 * 0 if no more entries are there to return.
48 LDAPEntryList entryList;
49 LDAPReferenceList refList;
50 LDAPEntryList::const_iterator entryPos;
51 LDAPReferenceList::const_iterator refPos;
53 #endif //LDAP_SEARCH_RESULTS_H