LDAPSearchResult.h 991 Bytes
Newer Older
1
// $OpenLDAP$
2
/*
Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
3
 * Copyright 2000-2013 The OpenLDAP Foundation, All Rights Reserved.
4
5
6
7
8
9
10
 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
 */


#ifndef LDAP_SEARCH_RESULT_H
#define LDAP_SEARCH_RESULT_H

11
12
#include <LDAPMessage.h>
#include <LDAPEntry.h>
13
14
15

class LDAPRequest;

Ralf Haferkamp's avatar
Ralf Haferkamp committed
16
17
18
19
/**
 * This class is used to represent the result entries of a
 * SEARCH-operation.
 */
20
class LDAPSearchResult : public LDAPMsg{
Ralf Haferkamp's avatar
Ralf Haferkamp committed
21
22
23
24
25
26
27
28
29
    public:
        /**
         * Constructor that create an object from the C-API structures
         */
        LDAPSearchResult(const LDAPRequest *req, LDAPMessage *msg);

        /**
         * Copy-Constructor
         */
30
        LDAPSearchResult(const LDAPSearchResult& res);
Ralf Haferkamp's avatar
Ralf Haferkamp committed
31
32
33
34
35
36
37
38
39
40
41

        /**
         * The Destructor
         */
        virtual ~LDAPSearchResult();

        /**
         * @returns The entry that has been sent with this result message. 
         */
        const LDAPEntry* getEntry() const;
    
42
    private:
Ralf Haferkamp's avatar
Ralf Haferkamp committed
43
        LDAPEntry *entry;
44
45
};
#endif //LDAP_SEARCH_RESULT_H