]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/src/LDAPUrl.h
fd269e05a821cf1ed42aa3b796512cb67d94b7b1
[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
7 #ifndef LDAP_URL_H
8 #define LDAP_URL_H
9
10 #include <ldap.h>
11 #include "StringList.h"
12 class LDAPUrl{
13     
14     protected :
15         int m_Port;
16         int m_Scope;
17         string m_Host;
18         string m_DN;
19         string m_Filter;
20         StringList m_Attrs;
21         LDAPURLDesc *m_urlDesc;
22         string m_urlString;
23
24     public : 
25         LDAPUrl(const char *url);
26         ~LDAPUrl();
27
28         int getPort() const;
29         int getScope() const;
30         const string& getURLString() const;
31         const string& getHost() const;
32         const string& getDN() const;
33         const string& getFilter() const;
34         const StringList& getAttrs() const;
35 };
36
37 #endif //LDAP_URL_H