1 // $OpenLDAP: pkg/ldap/contrib/ldapc++/src/LDAPSearchResult.h,v 1.4.10.1 2008/04/14 23:09:26 quanah Exp $ 2 /* 3 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved. 4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file 5 */ 6 7 8 #ifndef LDAP_SEARCH_RESULT_H 9 #define LDAP_SEARCH_RESULT_H 10 11 #include <LDAPMessage.h> 12 #include <LDAPEntry.h> 13 14 class LDAPRequest; 15 16 /** 17 * This class is used to represent the result entries of a 18 * SEARCH-operation. 19 */ 20 class LDAPSearchResult : public LDAPMsg{ 21 public: 22 /** 23 * Constructor that create an object from the C-API structures 24 */ 25 LDAPSearchResult(const LDAPRequest *req, LDAPMessage *msg); 26 27 /** 28 * Copy-Constructor 29 */ 30 LDAPSearchResult(const LDAPSearchResult& res); 31 32 /** 33 * The Destructor 34 */ 35 virtual ~LDAPSearchResult(); 36 37 /** 38 * @returns The entry that has been sent with this result message. 39 */ 40 const LDAPEntry* getEntry() const; 41 42 private: 43 LDAPEntry *entry; 44 }; 45 #endif //LDAP_SEARCH_RESULT_H 46