2 #include "zipios++/zipios-config.h"
6 #include "zipios++/meta-iostreams.h"
26 : _filename ( filename ),
28 _basepath ( basepath )
30 string full_path = _basepath + _filename ;
31 ifstream is( full_path.c_str(), ios::in | ios::binary ) ;
35 is.seekg( 0, ios::end ) ;
55 return vector< unsigned char > () ;
69 string::size_type pos ;
70 pos = _filename.find_last_of( separator ) ;
71 if ( pos != string::npos ) {
73 return _filename.substr(pos + 1) ;
93 assert( _filename.size() != 0 ) ;
94 return _filename[ _filename.size() - 1 ] == separator ;
128 sout << _filename <<
" (" << _size <<
" bytes)" ;
136 BasicEntry::~BasicEntry() {