X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=contrib%2Fldapc%2B%2B%2Fsrc%2FLDAPSearchResults.h;h=7a3bebe90b5211e26024dccbef3e315b650801bb;hb=c8c34cdd43d3603f3b64a56841b4425379c98f45;hp=10d7b425bd6989267a81c66e5f7fc2ecd69ca735;hpb=1ab5360fee85bbe0f9735813e89852ed6a832439;p=openldap diff --git a/contrib/ldapc++/src/LDAPSearchResults.h b/contrib/ldapc++/src/LDAPSearchResults.h index 10d7b425bd..7a3bebe90b 100644 --- a/contrib/ldapc++/src/LDAPSearchResults.h +++ b/contrib/ldapc++/src/LDAPSearchResults.h @@ -1,30 +1,55 @@ +// $OpenLDAP$ /* - * Copyright 2000, OpenLDAP Foundation, All Rights Reserved. + * Copyright 2000-2011 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ #ifndef LDAP_SEARCH_RESULTS_H #define LDAP_SEARCH_RESULTS_H -#include "LDAPEntry.h" -#include "LDAPEntryList.h" -#include "LDAPMessage.h" -#include "LDAPMessageQueue.h" -#include "LDAPReferenceList.h" -#include "LDAPSearchReference.h" +#include +#include +#include +#include +#include +#include class LDAPResult; +/** + * The class stores the results of a synchronous SEARCH-Operation + */ class LDAPSearchResults{ + public: + /** + * Default-Constructor + */ + LDAPSearchResults(); + + /** + * For internal use only. + * + * This method reads Search result entries from a + * LDAPMessageQueue-object. + * @param msg The message queue to read + */ + LDAPResult* readMessageQueue(LDAPMessageQueue* msg); + + /** + * The method is used by the client-application to read the + * result entries of the SEARCH-Operation. Every call of this + * method returns one entry. If all entries were read it return 0. + * @throws LDAPReferralException If a Search Reference was + * returned by the server + * @returns A LDAPEntry-object as a result of a SEARCH-Operation or + * 0 if no more entries are there to return. + */ + LDAPEntry* getNext(); private : LDAPEntryList entryList; LDAPReferenceList refList; LDAPEntryList::const_iterator entryPos; LDAPReferenceList::const_iterator refPos; - public: - LDAPSearchResults(); - LDAPResult* readMessageQueue(LDAPMessageQueue* msg); - LDAPEntry* getNext(); }; #endif //LDAP_SEARCH_RESULTS_H