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