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