]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/src/LDAPUrl.h
Initial check of the LDAP C++ SDK written by Ralf Haferkamp <rhafer@suse.de>
[openldap] / contrib / ldapc++ / src / LDAPUrl.h
1 /*
2  * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5
6 // $Id: LDAPUrl.h,v 1.5 2000/08/31 17:43:49 rhafer Exp $
7
8 #ifndef LDAP_URL_H
9 #define LDAP_URL_H
10
11 #include <ldap.h>
12
13 class LDAPUrl{
14     
15     protected :
16         LDAPURLDesc *m_urlDesc;
17         char *m_urlString;
18
19     public : 
20         LDAPUrl(char *url);
21         LDAPUrl(char *host, int port, char *dn, char **attrs, int scope=0,
22                 char *filter=0);
23         ~LDAPUrl();
24
25         int getPort() const;
26         int getScope() const;
27         char* getURLString() const;
28         char* getHost() const;
29         char* getDN() const;
30         char* getFilter() const;
31         char** getAttrs() const;
32 };
33
34 #endif //LDAP_URL_H