-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreader.h
61 lines (51 loc) · 1.13 KB
/
reader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
* =====================================================================================
*
* Filename: reader.h
*
* Description:
*
* Version: 1.0
* Created: 05/06/2016 09:56:26 PM
* Revision: none
* Compiler: gcc
*
* Author: Prashant Pandey (), [email protected]
* Organization: Stony Brook University
*
* =====================================================================================
*/
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <zlib.h>
#include <bzlib.h>
#ifndef _READER_H_
#define _READER_H_
using namespace std;
namespace kmercounting {
class reader {
public:
reader();
reader(FILE *in, gzFile_s *in_gzip, BZFILE *in_bzip2, int bzerror);
FILE *in = nullptr;
gzFile_s *in_gzip = nullptr;
BZFILE *in_bzip2 = nullptr;
int bzerror;
};
reader::reader()
{
in = nullptr;
in_gzip = nullptr;
in_bzip2 = nullptr;
bzerror = 0;
}
reader::reader(FILE *_in, gzFile_s *_in_gzip, BZFILE *_in_bzip2, int _bzerror)
{
in = _in;
in_gzip = _in_gzip;
in_bzip2 = _in_bzip2;
bzerror = _bzerror;
}
}
#endif