2 #include "zipios++/zipios-config.h"
4 #include "zipios++/meta-iostreams.h"
9 using namespace zipios ;
19 cout <<
"Instantiating a ZipFile" << endl ;
22 cout <<
"list length : " << zf.size() << endl ;
24 ConstEntries entries ;
25 entries = zf.entries() ;
28 ConstEntries::iterator it ;
29 for( it = entries.begin() ; it != entries.end() ; it++)
30 cout << *(*it) << endl ;
34 auto_ptr< istream > is( zf.getInputStream( ent ) ) ;
36 cout <<
"Contents of entry, " << ent->getName() <<
" :" << endl ;
40 cout <<
"end of main()" << endl ;
44 catch( exception &excp ) {
45 cerr <<
"Exception caught in main() :" << endl ;
46 cerr << excp.what() << endl ;
Header file that defines ZipFile.
SimpleSmartPointer is a simple reference counting smart pointer template.