-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathobsData.h
64 lines (50 loc) · 1.33 KB
/
obsData.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef OBSDATA_H
#define OBSDATA_H
#include <vector>
#include <string>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <fstream>
using namespace std ;
class obsSite
{
friend std::istream& operator >>(std::istream&, obsSite&);
public:
obsSite() ;
string getChr(void) {return mChr;};
long getLocation(void) {return mLocation;};
int getCoverage(void) {return mCoverage;};
int getDerived(void) {return mDerived;};
char getClint(void) {return mClint;};
char getUlindi(void) {return mUlindi;};
double getDist(void) {return mDist;};
double getDistBin(void);
void setChr(string value) {mChr = value;};
void setLocation(long value) {mLocation = value;};
void setCoverage(int value) {mCoverage = value;};
void setDerived(int value) {mDerived = value;};
void setClint(char value) {mClint = value;};
void setUlindi(char value) {mUlindi = value;};
void setDist(double value) {mDist = value;};
string print(void);
private:
string mChr ;
long mLocation ;
int mCoverage ;
int mDerived ;
char mClint ;
char mUlindi ;
double mDist ;
} ;
class obsSequence
{
public:
obsSequence();
char loadSequence(const char* fileName);
int size(void);
obsSite at(int i);
protected:
vector<obsSite> mSequence;
};
#endif