/[enigma]/enigma/lib-src/zipios++/src/zipinputstream.cpp
ViewVC logotype

Diff of /enigma/lib-src/zipios++/src/zipinputstream.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by dheck, Tue Jun 10 22:09:57 2003 UTC revision 1.2 by dheck, Sun Jun 15 10:18:58 2003 UTC
# Line 8  Line 8 
8    
9  namespace zipios {  namespace zipios {
10    
11  ZipInputStream::ZipInputStream( istream &is, streampos pos )  ZipInputStream::ZipInputStream( std::istream &is, std::streampos pos )
12    : istream( 0 ),    : std::istream( 0 ),
13  // SGIs basic_ifstream calls istream with 0, but calls basic_ios constructor first??  // SGIs basic_ifstream calls istream with 0, but calls basic_ios constructor first??
14      ifs( 0 )      ifs( 0 )
15  {  {
# Line 18  ZipInputStream::ZipInputStream( istream Line 18  ZipInputStream::ZipInputStream( istream
18    this->init( izf ) ;    this->init( izf ) ;
19  }  }
20    
21  ZipInputStream::ZipInputStream( const string &filename, streampos pos )  ZipInputStream::ZipInputStream( const std::string &filename, std::streampos pos )
22    : istream( 0 ),    : std::istream( 0 ),
23      ifs( 0 )      ifs( 0 )
24  {  {
25    ifs = new ifstream( filename.c_str(), ios::in | ios::binary ) ;    ifs = new std::ifstream( filename.c_str(), std::ios::in |std:: ios::binary ) ;
26    izf = new ZipInputStreambuf( ifs->rdbuf(), pos ) ;    izf = new ZipInputStreambuf( ifs->rdbuf(), pos ) ;
27  //  this->rdbuf( izf ) ; is replaced by:  //  this->rdbuf( izf ) ; is replaced by:
28    this->init( izf ) ;    this->init( izf ) ;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26