forked from institut-de-genomique/Kfir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ReadFile.h
50 lines (39 loc) · 922 Bytes
/
ReadFile.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
/*******************************************************************************
+
+ ReadFile.h
+
+ Copyright (c) 2002 Genoscope, CEA, CNS, Evry, France
+ Author : Jean-Marc Aury, [email protected]
+
*******************************************************************************/
#ifndef JM_READ_FILE_H
#define JM_READ_FILE_H
#include "LocalType.h"
#include "DnaDictionary.h"
#include <iostream>
#include <fstream>
#include <string>
#include <time.h>
#include <map>
using namespace std;
class ReadFile {
private:
u32 _file_format;
char* _filename;
fstream _fstrm;
void _checkFormat();
public:
static s32 VERBOSE;
/* Constructors and Destructors*/
ReadFile(char* filename) {
_filename = filename;
_file_format = 0;
_checkFormat();
}
~ReadFile() {}
/* Accessors */
/* Methods */
int next(string&, s32&);
s32 loadAndCount(DnaDictionary&);
};
#endif