-
Notifications
You must be signed in to change notification settings - Fork 0
/
Format.h
48 lines (41 loc) · 1.26 KB
/
Format.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
#ifndef FORMAT_H
#define FORMAT_H
#include <iostream>
#include <vector>
using namespace std;
class Format
{
private:
//declaring variables
string Id;
string Acc;
string Gi;
string Gb;
string Desc;
string Seq;
vector<vector<string>> Vec;
public:
//constructor
Format();
Format(string seq);
Format(string id, string gi, string gb, string desc, string seq);
Format(string id,string acc, string gi, string gb, string desc, string seq, vector<vector<string>> vec );
//Mutator
void setId(string newId); //id setter
void setAcc(string newAcc); //accession no setter
void setGi(string newGi); //gi setter
void setGb(string newGb); //gb setter
void setDesc(string newDesc); //description setter
void setSeq(string newSeq); //sequence setter
//Accessor
string getId(); //id getter
string getAcc(); //accession no getter
string getGi(); //gi getter
string getGb(); //gb getter
string getDesc(); //description getter
string getSeq(); //sequence getter
vector<vector<string>> getVec(); //vec getter
int getSeqLength(); //get sequence length function
virtual void printFormat()=0; //virtual print format function
};
#endif //FORMAT_H