Url.h

Go to the documentation of this file.
00001 #ifndef __URL_H__
00002 #define __URL_H__
00003 
00004 /*
00005 
00006 $Header$
00007 
00008 */
00009 
00010 #include "Object.h"
00011 #include "String.h"
00012 
00013 static const char *const URL_PROTOCOL_HTTP  = "http";
00014 static const char *const URL_PROTOCOL_RTSP  = "rtsp";
00015 static const char *const URL_PROTOCOL_UDP   = "udp";
00016 static const char *const URL_PROTOCOL_ABOUT = "about";
00017 static const char *const URL_PROTOCOL_FILE  = "file";
00018 
00019 static const char *const  URL_PROTOCOL_DEFAULT  = URL_PROTOCOL_HTTP;
00020 static const char *const  URL_HOST_DEFAULT      = "localhost";
00021 static const unsigned int URL_PORT_DEFAULT      = 80;
00022 
00023 using namespace std;
00024 
00025 class Url : public Object
00026 {
00027 
00028   PYLON_OBJECT
00029 
00030 public:
00031 
00032   Url(const String &url);
00033   virtual ~Url();
00034 
00035   String protocol() const;
00036   String host() const;
00037   unsigned int port() const;
00038   String path() const;
00039   String fileName() const;
00040 
00041   static String encode(const String &url);
00042 
00043 private:
00044 
00045   String _protocol;
00046   String _host;
00047   unsigned int _port;
00048   String _path;
00049   String _fileName;
00050 };
00051 
00052 #endif

Generated on Thu Sep 6 20:11:25 2007 for Pylon Application Platform by  doxygen 1.5.1