136 |
return *this ; |
return *this ; |
137 |
} |
} |
138 |
|
|
139 |
|
inline ostream & operator<< (ostream &os, const FileCollection& collection) { |
140 |
|
os << "collection '" << collection.getName() << "' {" ; |
141 |
|
ConstEntries entries = collection.entries(); |
142 |
|
ConstEntries::const_iterator it; |
143 |
|
bool isFirst=true; |
144 |
|
for (it=entries.begin(); it != entries.end(); ++it) { |
145 |
|
if(! isFirst) |
146 |
|
os << ", "; |
147 |
|
isFirst = false; |
148 |
|
os << (*it)->getName(); |
149 |
|
} |
150 |
|
os << "}"; |
151 |
|
return os; |
152 |
|
} |
153 |
|
|
154 |
|
|
155 |
} // namespace |
} // namespace |
156 |
|
|
157 |
#endif |
#endif |
165 |
|
|
166 |
\section intro Introduction |
\section intro Introduction |
167 |
|
|
168 |
Zipios++ is a java.util.zip-like C++ library for reading Zip |
Zipios++ is a java.util.zip-like C++ library for reading and |
169 |
files. Access to individual entries is provided through standard |
writing Zip files. Access to individual entries is provided through |
170 |
C++ iostreams. A simple read-only virtual file system that mounts |
standard C++ iostreams. A simple read-only virtual file system that |
171 |
regular directories and zip files is also provided. |
mounts regular directories and zip files is also provided. |
172 |
|
|
173 |
The source code is released under the <A |
The source code is released under the <A |
174 |
HREF="http://www.gnu.org/copyleft/lesser.html">GNU Lesser General Public |
HREF="http://www.gnu.org/copyleft/lesser.html">GNU Lesser General Public |
175 |
License</A>. |
License</A>. |
176 |
|
|
177 |
\section status Status |
\section status Status |
178 |
Writing is not supported yet |
|
|
|
|
179 |
Spanned archives are not supported, and support is not planned. |
Spanned archives are not supported, and support is not planned. |
180 |
|
|
181 |
|
|
182 |
The library has been tested and appears to be working with |
The library has been tested and appears to be working with |
183 |
<UL> |
<UL> |
184 |
<LI>Linux Mandrake release 7.0 (Air) / gcc 2.95.2</LI> |
<LI><A HREF="http://www.freebsd.org/ports/archivers.html#zipios++-0.1.5">FreeBSD stable and current / gcc 2.95.3</A></LI> |
185 |
|
<LI>Red Hat Linux release 7.0 / gcc 2.96</LI> |
186 |
<LI>Red Hat Linux release 6.2 (Zoot) / egcs-2.91.66</LI> |
<LI>Red Hat Linux release 6.2 (Zoot) / egcs-2.91.66</LI> |
187 |
|
<LI>Linux Mandrake release 7.0 (Air) / gcc 2.95.2</LI> |
188 |
<LI>SGI IRIX64 6.5 / gcc 2.95.2</LI> |
<LI>SGI IRIX64 6.5 / gcc 2.95.2</LI> |
189 |
<LI>SGI IRIX64 6.5 / MIPSpro Compilers: Version 7.30</LI> |
<LI>SGI IRIX64 6.5 / MIPSpro Compilers: Version 7.30</LI> |
190 |
</UL> |
</UL> |