-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.h
47 lines (39 loc) · 1.1 KB
/
output.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
// ******************************************************
// vcfCTools (c) 2011 Alistair Ward
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ------------------------------------------------------
// Last modified: 18 February 2011
// ------------------------------------------------------
// Define the output class with all associated operations.
// ******************************************************
#ifndef OUTPUT_H
#define OUTPUT_H
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <fstream>
#include <string>
#include <stdlib.h>
#include <map>
#include <vector>
using namespace std;
namespace vcfCTools {
class output {
public:
output(void);
~output(void);
public:
ostream* openOutputFile(string&);
void flushToBuffer(int, string&);
void flushOutputBuffer();
public:
ostream* outputStream;
string currentReferenceSequence;
string outputRecord;
map<int, vector<string> > outputBuffer;
map<int, vector<string> >::iterator obIter;
vector<string>::iterator recordIter;
};
} // namespace vcfCTools
#endif // OUTPUT_H