File: report.hpp

package info (click to toggle)
mothur 1.48.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 13,684 kB
  • sloc: cpp: 161,854; makefile: 122; sh: 31
file content (45 lines) | stat: -rw-r--r-- 888 bytes parent folder | download | duplicates (4)
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
//
//  report.hpp
//  Mothur
//
//  Created by Sarah Westcott on 7/15/20.
//  Copyright © 2020 Schloss Lab. All rights reserved.
//

#ifndef report_hpp
#define report_hpp

#include "utils.hpp"
#include "mothurout.h"

/**************************************************************************************************/

class Report {

public:
    
    Report() { m = MothurOut::getInstance(); }
    virtual ~Report() = default;
    
    virtual void read(ifstream&) = 0;
    
    vector<string> getHeaders() { return reportHeaders; }
    vector<string> readHeaders(ifstream&);
    void printHeaders(ofstream&);

    
protected:
    
    virtual void fillHeaders() = 0;
        
    MothurOut* m;
    Utils util;
    
    vector<string> reportHeaders;
    
};

/**************************************************************************************************/


#endif /* report_hpp */