LDAPSearchResult.h 969 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
 */


#ifndef LDAP_SEARCH_RESULT_H
#define LDAP_SEARCH_RESULT_H

#include "LDAPMessage.h"
#include "LDAPEntry.h"

class LDAPRequest;

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

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

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

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