OSDN Git Service

uri.hpp: 色々なコンストラクタ
authorMyun2 <myun2@nwhite.info>
Thu, 24 May 2012 18:31:56 +0000 (03:31 +0900)
committerMyun2 <myun2@nwhite.info>
Thu, 24 May 2012 18:31:56 +0000 (03:31 +0900)
roast/include/roast/net/uri.hpp

index 6779be2..4806147 100644 (file)
@@ -183,10 +183,37 @@ namespace roast
 
        public:
                uri_net_path_(){ _init_refs(); }
-               uri_net_path_(const _Scheme& scheme_in, const _Path& path_in){
+
+               uri_net_path_(const _Scheme& scheme_in, const _Host& host_in, const _Path& path_in="/"){
+                       _init_refs();
+                       
+                       scheme = scheme_in;
+                       host = host_in;
+                       path = path_in;
+               }
+               uri_net_path_(const _Scheme& scheme_in, const _Host& host_in, const _UserInfo& username_in, const _Path& path_in){
+                       _init_refs();
+                       
+                       scheme = scheme_in;
+                       host = host_in;
+                       user = username_in;
+                       path = path_in;
+               }
+               uri_net_path_(const _Scheme& scheme_in, const _Host& host_in, const _Port& port_no_in, const _Path& path_in){
+                       _init_refs();
+                       
+                       scheme = scheme_in;
+                       host = host_in;
+                       port_no = port_no_in;
+                       path = path_in;
+               }
+               uri_net_path_(const _Scheme& scheme_in, const _Host& host_in, const _UserInfo& username_in, const _Port& port_no_in, const _Path& path_in){
                        _init_refs();
                        
                        scheme = scheme_in;
+                       host = host_in;
+                       user = username_in;
+                       port_no = port_no_in;
                        path = path_in;
                }
        };