Databaseconnectionclasses  0.5.3
hk_url.h
1 // ****************************************************************************
2 // copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>
3 // This file is part of the hk_classes library.
4 // This file may be distributed and/or modified under the terms of the
5 // GNU Library Public License version 2 as published by the Free Software
6 // Foundation and appearing in the file COPYING included in the
7 // packaging of this file.
8 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
9 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
10 // ****************************************************************************
11 //$Revision: 1.2 $
12 #ifndef HK_URL
13 #define HK_URL
14 
15 #include "hk_class.h"
16 #include "hk_string.h"
17 class hk_url: public hk_class
18 {
19  public:
20  hk_url();
21  hk_url(const hk_string&);
22  bool operator=(const hk_url& url);
23  bool operator=(const hk_string& url);
24  bool is_valid() const {return p_isvalid;}
25  bool is_local() const {return p_islocal;}
26  hk_string url(void) const {return p_url;}
27  hk_string filename(void) const {return p_filename;}
28  hk_string directory(void) const { return p_directory;}
29  hk_string extension(void) const { return p_extension;}
30  private:
31  void init();
32  bool parse_url();
33  bool set_url(const hk_string&);
34  bool p_isvalid;
35  bool p_islocal;
36  hk_string p_url;
37  hk_string p_filename;
38  hk_string p_directory;
39  hk_string p_extension;
40 };
41 
42 #endif // HK_URL
basic class for all other defined classes.
Definition: hk_class.h:52
Definition: hk_url.h:17