#include <GlobalDefinitions.h>
Public Member Functions | |
| ifstreamSSAHA (const char *fileName, unsigned long chunkSize=maxChunkSize) | |
| istream & | read (const char *p, unsigned long s) |
| unsigned long | gcount (void) const |
Protected Attributes | |
| unsigned long | chunkSize_ |
| unsigned long | bytesSoFar_ |
Static Private Attributes | |
| static const unsigned long | maxChunkSize = ( ((unsigned long)1<<31)-1 ) |
Definition at line 488 of file GlobalDefinitions.h.
| ifstreamSSAHA::ifstreamSSAHA | ( | const char * | fileName, | |
| unsigned long | chunkSize = maxChunkSize | |||
| ) | [inline] |
Definition at line 496 of file GlobalDefinitions.h.
00497 : std::ifstream( fileName ), chunkSize_( chunkSize ) {}
| istream& ifstreamSSAHA::read | ( | const char * | p, | |
| unsigned long | s | |||
| ) | [inline] |
Definition at line 499 of file GlobalDefinitions.h.
References bytesSoFar_, and maxChunkSize.
00500 { 00501 bytesSoFar_=0; 00502 while ( s > maxChunkSize ) 00503 { 00504 std::ifstream::read((char*)p,maxChunkSize); 00505 p+=maxChunkSize; 00506 s-=maxChunkSize; 00507 bytesSoFar_+=std::ifstream::gcount(); 00508 } // ~while 00509 std::ifstream::read((char*)p,s); 00510 bytesSoFar_+=std::ifstream::gcount(); 00511 // cout << "!!!read " << bytesSoFar_ << endl; 00512 return *this; 00513 } // ~read
| unsigned long ifstreamSSAHA::gcount | ( | void | ) | const [inline] |
Definition at line 515 of file GlobalDefinitions.h.
References bytesSoFar_.
00516 { return bytesSoFar_; }
const unsigned long ifstreamSSAHA::maxChunkSize = ( ((unsigned long)1<<31)-1 ) [static, private] |
unsigned long ifstreamSSAHA::chunkSize_ [protected] |
Definition at line 520 of file GlobalDefinitions.h.
unsigned long ifstreamSSAHA::bytesSoFar_ [protected] |
1.5.2