OSDN Git Service

uri_net_path_with_scheme Add.
authorMyun2 <myun2@nwhite.info>
Sun, 27 May 2012 18:53:12 +0000 (03:53 +0900)
committerMyun2 <myun2@nwhite.info>
Sun, 27 May 2012 18:53:12 +0000 (03:53 +0900)
roast/include/roast/net/uri.hpp

index 93db85a..852d293 100644 (file)
@@ -221,6 +221,29 @@ namespace roast
        };
        typedef uri_net_path_<> uri_net_path;
        
+       /////////////////////////
+       
+       template <
+               typename _Scheme,
+               typename _Host = lexical::string,
+               typename _UserInfo = lexical::string,
+               typename _Port = lexical::num_string,
+               typename _Path = lexical::string
+               >
+       class uri_net_path_with_scheme : public uri_net_path_<_Scheme, _Host, _UserInfo, _Port, _Path>
+       {
+       public:
+               uri_net_path_with_scheme_()
+               uri_net_path_with_scheme_(const _Host& host_in, const _Path& path_in="/")
+                       : (_Scheme(), host_in, path_in ) {}
+               uri_net_path_with_scheme_(const _Host& host_in, const _Path& path_in, const _UserInfo& username_in)
+                       : (_Scheme(), host_in, path_in, username_in ) {}
+               uri_net_path_with_scheme_(const _Host& host_in, const _Path& path_in, const _Port& port_no_in)
+                       : (_Scheme(), host_in, path_in, port_no_in ) {}
+               uri_net_path_with_scheme_(const _Host& host_in, const _Path& path_in, const _UserInfo& username_in, const _Port& port_no_in)
+                       : (_Scheme(), host_in, path_in, username_in, port_no_in ) {}
+       };
+       
        ///////////////////////////////////////////////////////////////////////////
 }