forked from StephanePeyregne/ELS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobsData.h
66 lines (52 loc) · 1.35 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
65
66
#ifndef OBSDATA_H
#define OBSDATA_H
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
class obsSite
{
friend std::istream &operator>>(std::istream &, obsSite &);
public:
obsSite();
// clang-format off
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;};
// clang-format on
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