Skip to content

Commit

Permalink
Merge branch 'release-v0.1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
cartoonist committed Aug 29, 2018
2 parents 4289751 + 6a29d8f commit f53c338
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/kseq++.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// versioning
#define KLIBPP_MAJOR 0
#define KLIBPP_MINOR 1
#define KLIBPP_REVISION 2
#define KLIBPP_REVISION 3

namespace klibpp {
template< typename TFile,
Expand Down
8 changes: 8 additions & 0 deletions src/seqio.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ namespace klibpp {
SeqStreamIn( const char* filename )
: base_type( gzopen( filename, "r" ), gzread, gzclose )
{ }

SeqStreamIn( int fd )
: base_type( gzdopen( fd, "r" ), gzread, gzclose )
{ }
};

class SeqStreamOut
Expand All @@ -44,6 +48,10 @@ namespace klibpp {
SeqStreamOut( const char* filename, bool compressed=false )
: base_type( gzopen( filename, ( compressed ? "w" : "wT" ) ), gzwrite, gzclose )
{ }

SeqStreamOut( int fd, bool compressed=false )
: base_type( gzdopen( fd, ( compressed ? "w" : "wT" ) ), gzwrite, gzclose )
{ }
};
} /* ----- end of namespace klibpp ----- */
#endif /* ----- #ifndef SEQIO_H__ ----- */

0 comments on commit f53c338

Please sign in to comment.