]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/src/LDAPExtResult.h
some changes to make the library working with gcc 3.0 (mostly namespace
[openldap] / contrib / ldapc++ / src / LDAPExtResult.h
1 /*
2  * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5
6 #ifndef LDAP_EXT_RESULT_H
7 #define LDAP_EXT_RESULT_H
8
9 #include <ldap.h>
10
11 #include <LDAPResult.h>
12
13 class LDAPRequest;
14
15 /**
16  * Object of this class are created by the LDAPMsg::create method if
17  * results for an Extended Operation were returned by a LDAP server.
18  */
19 class LDAPExtResult : public LDAPResult {
20     public :
21         /**
22          * Constructor that creates an LDAPExtResult-object from the C-API
23          * structures
24          */
25         LDAPExtResult(const LDAPRequest* req, LDAPMessage* msg);
26
27         /**
28          * The Destructor
29          */
30         virtual ~LDAPExtResult();
31
32         /**
33          * @returns The OID of the Extended Operation that has returned
34          *          this result. 
35          */
36         const std::string& getResponseOid() const;
37
38         /**
39          * @returns If the result contained data this method will return
40          *          the data to the caller as a std::string.
41          */
42         const std::string& getResponse() const;
43
44     private:
45         std::string m_oid;
46         std::string m_data;
47 };
48
49 #endif // LDAP_EXT_RESULT_H