X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=contrib%2Fldapc%2B%2B%2Fsrc%2FLDAPSearchResult.h;h=4ac13f16082f52aeeb48fb6225a7ce40e8f14444;hb=4d0d12db27b3b44cc36acc089b0e640320480fe7;hp=4ee1cfad2efa982c4a54821c60a0bb2733d3982c;hpb=11fbe2a45c64036a08e601270b0d1049f2c57009;p=openldap diff --git a/contrib/ldapc++/src/LDAPSearchResult.h b/contrib/ldapc++/src/LDAPSearchResult.h index 4ee1cfad2e..4ac13f1608 100644 --- a/contrib/ldapc++/src/LDAPSearchResult.h +++ b/contrib/ldapc++/src/LDAPSearchResult.h @@ -1,5 +1,6 @@ +// $OpenLDAP$ /* - * Copyright 2000, OpenLDAP Foundation, All Rights Reserved. + * Copyright 2000-2012 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ @@ -7,19 +8,38 @@ #ifndef LDAP_SEARCH_RESULT_H #define LDAP_SEARCH_RESULT_H -#include "LDAPMessage.h" -#include "LDAPEntry.h" +#include +#include class LDAPRequest; +/** + * This class is used to represent the result entries of a + * SEARCH-operation. + */ class LDAPSearchResult : public LDAPMsg{ - public: - LDAPSearchResult(const LDAPRequest *req, LDAPMessage *msg); + public: + /** + * Constructor that create an object from the C-API structures + */ + LDAPSearchResult(const LDAPRequest *req, LDAPMessage *msg); + + /** + * Copy-Constructor + */ LDAPSearchResult(const LDAPSearchResult& res); - virtual ~LDAPSearchResult(); - const LDAPEntry* getEntry() const; - + + /** + * The Destructor + */ + virtual ~LDAPSearchResult(); + + /** + * @returns The entry that has been sent with this result message. + */ + const LDAPEntry* getEntry() const; + private: - LDAPEntry *entry; + LDAPEntry *entry; }; #endif //LDAP_SEARCH_RESULT_H