3 #include "zipios++/zipios-config.h"
5 #include "zipios++/meta-iostreams.h"
10 using namespace zipios ;
20 cout <<
"Instantiating a DirectoryCollection" << endl ;
25 auto_ptr< istream > is( collection.getInputStream( ent ) ) ;
27 cout <<
"Contents of entry, " << ent->getName() <<
" :" << endl ;
33 cout <<
"list length : " << collection.size() << endl ;
35 ConstEntries entries ;
36 entries = collection.entries() ;
39 ConstEntries::iterator it ;
40 for( it = entries.begin() ; it != entries.end() ; it++)
41 cout << *(*it) << endl ;
43 ent = collection.getEntry(
"zipios-config.h" ) ;
45 auto_ptr< istream > is( collection.getInputStream( ent ) ) ;
47 cout <<
"Contents of entry, " << ent->getName() <<
" :" << endl ;
51 cout <<
"end of main()" << endl ;
55 catch( exception &excp ) {
56 cerr <<
"Exception caught in main() :" << endl ;
57 cerr << excp.what() << endl ;
SimpleSmartPointer is a simple reference counting smart pointer template.
Header file that defines DirectoryCollection.