File: storagedatabase.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 (42 lines) | stat: -rw-r--r-- 1,001 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
//
//  storagedatabase.hpp
//  Mothur
//
//  Created by Sarah Westcott on 6/3/21.
//  Copyright © 2021 Schloss Lab. All rights reserved.
//

#ifndef storagedatabase_hpp
#define storagedatabase_hpp

#include "mothurout.h"
#include "sequence.hpp"
#include "protein.hpp"

class StorageDatabase {
    
public:
    
    StorageDatabase() {  m = MothurOut::getInstance();  length = 0; samelength = true; }
    virtual ~StorageDatabase() = default;             //loops through data and delete each sequence

    virtual int getNumSeqs() = 0;
    virtual void print(string) = 0;
    virtual bool sameLength() { return samelength; }
       
    virtual Sequence getSeq(int) { Sequence s; return s; }
    virtual Protein getProt(int) { Protein p; return p;  }
    virtual void push_back(Sequence) {}  //adds sequence
    virtual void push_back(Protein) {}  //adds protein
    
        
protected:
   
    MothurOut* m;
    Utils util;
    bool samelength;
    int length;

};

#endif /* storagedatabase_hpp */