]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/src/LDAPResult.h
Initial check of the LDAP C++ SDK written by Ralf Haferkamp <rhafer@suse.de>
[openldap] / contrib / ldapc++ / src / LDAPResult.h
1 /*
2  * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5
6 // $Id: LDAPResult.h,v 1.7 2000/08/31 17:43:49 rhafer Exp $
7
8 #ifndef LDAP_RESPNSE_H
9 #define LDAP_RESPONSE_H
10
11 #include<iostream>
12 #include<ldap.h>
13 #include "LDAPMessage.h"
14
15 class LDAPRequest;
16 class LDAPAsynConnection;
17 class LDAPResult : public LDAPMsg{
18         private :
19                 int m_resCode;
20                 char *m_matchedDN;
21                 char *m_errMsg;
22         
23         public :
24         static const int SUCCESS=0;
25         static const int REFERRAL=10;
26
27                 LDAPResult(LDAPRequest *req, LDAPMessage *msg);
28         virtual ~LDAPResult();
29                 int getResultCode();
30                 char* resToString();
31                 char* getErrMsg();
32                 char* getMatchedDN();
33                 friend  ostream& operator<<(ostream &s,LDAPResult &l);
34 };
35 #endif //LDAP_RESPONSE_H
36