supported wpath
@@ -4,7 +4,7 @@ | ||
4 | 4 | <!-- |
5 | 5 | Hamigaki.Archivers Library Document Source |
6 | 6 | |
7 | - Copyright Takeshi Mouri 2006, 2007. | |
7 | + Copyright Takeshi Mouri 2006-2008. | |
8 | 8 | Distributed under the Boost Software License, Version 1.0. |
9 | 9 | (See accompanying file LICENSE_1_0.txt or copy at |
10 | 10 | http://www.boost.org/LICENSE_1_0.txt) |
@@ -17,10 +17,13 @@ | ||
17 | 17 | <class name="basic_tbz2_file_source"> |
18 | 18 | <template> |
19 | 19 | <template-type-parameter name="Source"/> |
20 | + <template-type-parameter name="Path"> | |
21 | + <default>boost::filesystem::path</default> | |
22 | + </template-type-parameter> | |
20 | 23 | </template> |
21 | 24 | |
22 | 25 | <inherit access="public"> |
23 | - <type><classname>basic_tar_file_source</classname><boost::iostreams::composite<boost::iostreams::bzip2_decompressor, Source> ></type> | |
26 | + <type><classname>basic_tar_file_source</classname><boost::iostreams::composite<boost::iostreams::bzip2_decompressor, Source>, Path></type> | |
24 | 27 | <purpose>Exposition only</purpose> |
25 | 28 | </inherit> |
26 | 29 |
@@ -50,13 +53,29 @@ | ||
50 | 53 | </constructor> |
51 | 54 | </class> |
52 | 55 | |
56 | + <class name="wtbz2_file_source"> | |
57 | + <inherit access="public"> | |
58 | + <type><classname>basic_tbz2_file_source</classname><<classname>hamigaki::iostreams::file_source</classname>, boost::filesystem::wpath></type> | |
59 | + <purpose>Exposition only</purpose> | |
60 | + </inherit> | |
61 | + | |
62 | + <constructor specifiers="explicit"> | |
63 | + <parameter name="path"> | |
64 | + <paramtype>const std::string&</paramtype> | |
65 | + </parameter> | |
66 | + </constructor> | |
67 | + </class> | |
68 | + | |
53 | 69 | <class name="basic_tbz2_file_sink"> |
54 | 70 | <template> |
55 | 71 | <template-type-parameter name="Sink"/> |
72 | + <template-type-parameter name="Path"> | |
73 | + <default>boost::filesystem::path</default> | |
74 | + </template-type-parameter> | |
56 | 75 | </template> |
57 | 76 | |
58 | 77 | <inherit access="public"> |
59 | - <type><classname>basic_tar_file_sink</classname><boost::iostreams::composite<boost::iostreams::bzip2_compressor, Sink> ></type> | |
78 | + <type><classname>basic_tar_file_sink</classname><boost::iostreams::composite<boost::iostreams::bzip2_compressor, Sink>, Path></type> | |
60 | 79 | <purpose>Exposition only</purpose> |
61 | 80 | </inherit> |
62 | 81 |
@@ -85,6 +104,19 @@ | ||
85 | 104 | </parameter> |
86 | 105 | </constructor> |
87 | 106 | </class> |
107 | + | |
108 | + <class name="wtbz2_file_sink"> | |
109 | + <inherit access="public"> | |
110 | + <type><classname>basic_tbz2_file_sink</classname><<classname>hamigaki::iostreams::file_sink</classname>, boost::filesystem::wpath></type> | |
111 | + <purpose>Exposition only</purpose> | |
112 | + </inherit> | |
113 | + | |
114 | + <constructor> | |
115 | + <parameter name="path"> | |
116 | + <paramtype>const std::string&</paramtype> | |
117 | + </parameter> | |
118 | + </constructor> | |
119 | + </class> | |
88 | 120 | </namespace> |
89 | 121 | </namespace> |
90 | 122 | </header> |
@@ -4,7 +4,7 @@ | ||
4 | 4 | <!-- |
5 | 5 | Hamigaki.Archivers Library Document Source |
6 | 6 | |
7 | - Copyright Takeshi Mouri 2006, 2007. | |
7 | + Copyright Takeshi Mouri 2006-2008. | |
8 | 8 | Distributed under the Boost Software License, Version 1.0. |
9 | 9 | (See accompanying file LICENSE_1_0.txt or copy at |
10 | 10 | http://www.boost.org/LICENSE_1_0.txt) |
@@ -17,6 +17,9 @@ | ||
17 | 17 | <class name="basic_tar_file_source"> |
18 | 18 | <template> |
19 | 19 | <template-type-parameter name="Source"/> |
20 | + <template-type-parameter name="Path"> | |
21 | + <default>boost::filesystem::path</default> | |
22 | + </template-type-parameter> | |
20 | 23 | </template> |
21 | 24 | |
22 | 25 | <purpose><para>tarファイルへの読み込み専用アクセスを提供するSourceモデル</para></purpose> |
@@ -36,8 +39,12 @@ | ||
36 | 39 | <type><emphasis>implementation defined</emphasis></type> |
37 | 40 | </typedef> |
38 | 41 | |
42 | + <typedef name="path_type"> | |
43 | + <type>Path</type> | |
44 | + </typedef> | |
45 | + | |
39 | 46 | <typedef name="header_type"> |
40 | - <type><classname>tar::header</classname></type> | |
47 | + <type><classname>tar::basic_header</classname><Path></type> | |
41 | 48 | </typedef> |
42 | 49 | |
43 | 50 | <constructor specifiers="explicit"> |
@@ -66,7 +73,7 @@ | ||
66 | 73 | </method> |
67 | 74 | |
68 | 75 | <method name="header" cv="const"> |
69 | - <type><classname>tar::header</classname></type> | |
76 | + <type><classname>tar::basic_header</classname><Path></type> | |
70 | 77 | <returns><simpara>ヘッダ情報</simpara></returns> |
71 | 78 | </method> |
72 | 79 | </method-group> |
@@ -85,9 +92,25 @@ | ||
85 | 92 | </constructor> |
86 | 93 | </class> |
87 | 94 | |
95 | + <class name="wtar_file_source"> | |
96 | + <inherit access="public"> | |
97 | + <type><classname>basic_tar_file_source</classname><<classname>hamigaki::iostreams::file_source</classname>, boost::filesysten::wpath></type> | |
98 | + <purpose>Exposition only</purpose> | |
99 | + </inherit> | |
100 | + | |
101 | + <constructor specifiers="explicit"> | |
102 | + <parameter name="path"> | |
103 | + <paramtype>const std::string&</paramtype> | |
104 | + </parameter> | |
105 | + </constructor> | |
106 | + </class> | |
107 | + | |
88 | 108 | <class name="basic_tar_file_sink"> |
89 | 109 | <template> |
90 | 110 | <template-type-parameter name="Sink"/> |
111 | + <template-type-parameter name="Path"> | |
112 | + <default>boost::filesystem::path</default> | |
113 | + </template-type-parameter> | |
91 | 114 | </template> |
92 | 115 | |
93 | 116 | <purpose><para>tarファイルへの書き込み専用アクセスを提供するSinkモデル</para></purpose> |
@@ -108,8 +131,12 @@ | ||
108 | 131 | <type><emphasis>implementation defined</emphasis></type> |
109 | 132 | </typedef> |
110 | 133 | |
134 | + <typedef name="path_type"> | |
135 | + <type>Path</type> | |
136 | + </typedef> | |
137 | + | |
111 | 138 | <typedef name="header_type"> |
112 | - <type><classname>tar::header</classname></type> | |
139 | + <type><classname>tar::basic_header</classname><Path></type> | |
113 | 140 | </typedef> |
114 | 141 | |
115 | 142 | <constructor> |
@@ -138,7 +165,7 @@ | ||
138 | 165 | <method name="create_entry"> |
139 | 166 | <type>void</type> |
140 | 167 | <parameter name="head"> |
141 | - <paramtype>const <classname>tar::header</classname>&</paramtype> | |
168 | + <paramtype>const <classname>tar::basic_header</classname><Path>&</paramtype> | |
142 | 169 | </parameter> |
143 | 170 | <effects><simpara>新しいエントリを作成し、書き込みの対象とする</simpara></effects> |
144 | 171 | </method> |
@@ -167,6 +194,19 @@ | ||
167 | 194 | </parameter> |
168 | 195 | </constructor> |
169 | 196 | </class> |
197 | + | |
198 | + <class name="wtar_file_sink"> | |
199 | + <inherit access="public"> | |
200 | + <type><classname>basic_tar_file_sink</classname><<classname>hamigaki::iostreams::file_sink</classname>, boost::filesysten::wpath>></type> | |
201 | + <purpose>Exposition only</purpose> | |
202 | + </inherit> | |
203 | + | |
204 | + <constructor> | |
205 | + <parameter name="path"> | |
206 | + <paramtype>const std::string&</paramtype> | |
207 | + </parameter> | |
208 | + </constructor> | |
209 | + </class> | |
170 | 210 | </namespace> |
171 | 211 | </namespace> |
172 | 212 | </header> |
@@ -4,7 +4,7 @@ | ||
4 | 4 | <!-- |
5 | 5 | Hamigaki.Archivers Library Document Source |
6 | 6 | |
7 | - Copyright Takeshi Mouri 2006, 2007. | |
7 | + Copyright Takeshi Mouri 2006-2008. | |
8 | 8 | Distributed under the Boost Software License, Version 1.0. |
9 | 9 | (See accompanying file LICENSE_1_0.txt or copy at |
10 | 10 | http://www.boost.org/LICENSE_1_0.txt) |
@@ -15,7 +15,19 @@ | ||
15 | 15 | <namespace name="hamigaki"> |
16 | 16 | <namespace name="archivers"> |
17 | 17 | <namespace name="tar"> |
18 | - <struct name="header"> | |
18 | + <struct name="basic_header"> | |
19 | + <template> | |
20 | + <template-type-parameter name="Path"/> | |
21 | + </template> | |
22 | + | |
23 | + <typedef name="path_type"> | |
24 | + <type>Path</type> | |
25 | + </typedef> | |
26 | + | |
27 | + <typedef name="string_type"> | |
28 | + <type>typename Path::string_type</type> | |
29 | + </typedef> | |
30 | + | |
19 | 31 | <method-group name="queries"> |
20 | 32 | <method name="is_regular" cv="const"> |
21 | 33 | <type>bool</type> |
@@ -44,7 +56,7 @@ | ||
44 | 56 | </method-group> |
45 | 57 | |
46 | 58 | <data-member name="path"> |
47 | - <type>boost::filesystem::path</type> | |
59 | + <type>Path</type> | |
48 | 60 | </data-member> |
49 | 61 | |
50 | 62 | <data-member name="permissions"> |
@@ -80,7 +92,7 @@ | ||
80 | 92 | </data-member> |
81 | 93 | |
82 | 94 | <data-member name="link_path"> |
83 | - <type>boost::filesystem::path</type> | |
95 | + <type>Path</type> | |
84 | 96 | </data-member> |
85 | 97 | |
86 | 98 | <data-member name="format"> |
@@ -88,11 +100,11 @@ | ||
88 | 100 | </data-member> |
89 | 101 | |
90 | 102 | <data-member name="user_name"> |
91 | - <type>std::string</type> | |
103 | + <type>string_type</type> | |
92 | 104 | </data-member> |
93 | 105 | |
94 | 106 | <data-member name="group_name"> |
95 | - <type>std::string</type> | |
107 | + <type>string_type</type> | |
96 | 108 | </data-member> |
97 | 109 | |
98 | 110 | <data-member name="dev_major"> |
@@ -104,7 +116,7 @@ | ||
104 | 116 | </data-member> |
105 | 117 | |
106 | 118 | <data-member name="comment"> |
107 | - <type>std::string</type> | |
119 | + <type>string_type</type> | |
108 | 120 | </data-member> |
109 | 121 | |
110 | 122 | <description> |
@@ -205,6 +217,15 @@ | ||
205 | 217 | </para> |
206 | 218 | </description> |
207 | 219 | </struct> |
220 | + | |
221 | + <typedef name="header"> | |
222 | + <type><classname>basic_header</classname><boost::filesystem::path></type> | |
223 | + </typedef> | |
224 | + | |
225 | + <typedef name="wheader"> | |
226 | + <type><classname>basic_header</classname><boost::filesystem::wpath></type> | |
227 | + </typedef> | |
228 | + | |
208 | 229 | </namespace> |
209 | 230 | </namespace> |
210 | 231 | </namespace> |
@@ -40,6 +40,14 @@ | ||
40 | 40 | <template-type-parameter name="Path"/> |
41 | 41 | </template> |
42 | 42 | |
43 | + <typedef name="path_type"> | |
44 | + <type>Path</type> | |
45 | + </typedef> | |
46 | + | |
47 | + <typedef name="string_type"> | |
48 | + <type>typename Path::string_type</type> | |
49 | + </typedef> | |
50 | + | |
43 | 51 | <method-group name="queries"> |
44 | 52 | <method name="is_regular" cv="const"> |
45 | 53 | <type>bool</type> |
@@ -68,11 +76,11 @@ | ||
68 | 76 | </method-group> |
69 | 77 | |
70 | 78 | <data-member name="path"> |
71 | - <type>boost::filesystem::path</type> | |
79 | + <type>Path</type> | |
72 | 80 | </data-member> |
73 | 81 | |
74 | 82 | <data-member name="link_path"> |
75 | - <type>boost::filesystem::path</type> | |
83 | + <type>Path</type> | |
76 | 84 | </data-member> |
77 | 85 | |
78 | 86 | <data-member name="os"> |
@@ -124,7 +132,7 @@ | ||
124 | 132 | </data-member> |
125 | 133 | |
126 | 134 | <data-member name="comment"> |
127 | - <type>std::string</type> | |
135 | + <type>string_type</type> | |
128 | 136 | </data-member> |
129 | 137 | |
130 | 138 | <data-member name="modified_time"> |
@@ -4,7 +4,7 @@ | ||
4 | 4 | <!-- |
5 | 5 | Hamigaki.Archivers Library Document Source |
6 | 6 | |
7 | - Copyright Takeshi Mouri 2006, 2007. | |
7 | + Copyright Takeshi Mouri 2006-2008. | |
8 | 8 | Distributed under the Boost Software License, Version 1.0. |
9 | 9 | (See accompanying file LICENSE_1_0.txt or copy at |
10 | 10 | http://www.boost.org/LICENSE_1_0.txt) |
@@ -17,10 +17,13 @@ | ||
17 | 17 | <class name="basic_tgz_file_source"> |
18 | 18 | <template> |
19 | 19 | <template-type-parameter name="Source"/> |
20 | + <template-type-parameter name="Path"> | |
21 | + <default>boost::filesystem::path</default> | |
22 | + </template-type-parameter> | |
20 | 23 | </template> |
21 | 24 | |
22 | 25 | <inherit access="public"> |
23 | - <type><classname>basic_tar_file_source</classname><boost::iostreams::composite<boost::iostreams::gzip_decompressor, Source> ></type> | |
26 | + <type><classname>basic_tar_file_source</classname><boost::iostreams::composite<boost::iostreams::gzip_decompressor, Source>, Path></type> | |
24 | 27 | <purpose>Exposition only</purpose> |
25 | 28 | </inherit> |
26 | 29 |
@@ -50,13 +53,29 @@ | ||
50 | 53 | </constructor> |
51 | 54 | </class> |
52 | 55 | |
56 | + <class name="wtgz_file_source"> | |
57 | + <inherit access="public"> | |
58 | + <type><classname>basic_tgz_file_source</classname><<classname>hamigaki::iostreams::file_source</classname>, boost::filesystem::wpath></type> | |
59 | + <purpose>Exposition only</purpose> | |
60 | + </inherit> | |
61 | + | |
62 | + <constructor specifiers="explicit"> | |
63 | + <parameter name="path"> | |
64 | + <paramtype>const std::string&</paramtype> | |
65 | + </parameter> | |
66 | + </constructor> | |
67 | + </class> | |
68 | + | |
53 | 69 | <class name="basic_tgz_file_sink"> |
54 | 70 | <template> |
55 | 71 | <template-type-parameter name="Sink"/> |
72 | + <template-type-parameter name="Path"> | |
73 | + <default>boost::filesystem::path</default> | |
74 | + </template-type-parameter> | |
56 | 75 | </template> |
57 | 76 | |
58 | 77 | <inherit access="public"> |
59 | - <type><classname>basic_tar_file_sink</classname><boost::iostreams::composite<boost::iostreams::gzip_compressor, Sink> ></type> | |
78 | + <type><classname>basic_tar_file_sink</classname><boost::iostreams::composite<boost::iostreams::gzip_compressor, Sink>, Path></type> | |
60 | 79 | <purpose>Exposition only</purpose> |
61 | 80 | </inherit> |
62 | 81 |
@@ -85,6 +104,19 @@ | ||
85 | 104 | </parameter> |
86 | 105 | </constructor> |
87 | 106 | </class> |
107 | + | |
108 | + <class name="wtgz_file_sink"> | |
109 | + <inherit access="public"> | |
110 | + <type><classname>basic_tgz_file_sink</classname><<classname>hamigaki::iostreams::file_sink</classname>, boost::filesystem::wpath></type> | |
111 | + <purpose>Exposition only</purpose> | |
112 | + </inherit> | |
113 | + | |
114 | + <constructor> | |
115 | + <parameter name="path"> | |
116 | + <paramtype>const std::string&</paramtype> | |
117 | + </parameter> | |
118 | + </constructor> | |
119 | + </class> | |
88 | 120 | </namespace> |
89 | 121 | </namespace> |
90 | 122 | </header> |