xref: /netbsd-src/external/bsd/openldap/dist/contrib/ldapc++/src/LDAPSearchResult.h (revision 549b59ed3ccf0d36d3097190a0db27b770f3a839)
1 /*	$NetBSD: LDAPSearchResult.h,v 1.3 2021/08/14 16:14:49 christos Exp $	*/
2 
3 // $OpenLDAP$
4 /*
5  * Copyright 2000-2021 The 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