-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.h
65 lines (58 loc) · 1.28 KB
/
config.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
#ifndef ___CONFIG_H___
#define ___CONFIG_H___
#include <vector>
#include <ctime>
#include <fstream>
#include <string>
class Config;
#include "graph.h"
struct orderElement {
Vertex* start;
Vertex* end;
bool cut;
};
struct superbubble {
Vertex* entrance;
Vertex* exit;
};
class Config {
private:
std::vector<orderElement> orders;
std::vector<superbubble> bublles;
long unsigned int vertices;
long unsigned int edges;
long unsigned int multiedges;
std::clock_t time;
std::clock_t runtime;
std::string path;
bool noout;
std::string outpath;
bool order;
std::string orderpath;
bool stats;
std::string statspath;
bool trees;
std::string treespath;
bool debug;
bool undirected;
bool directed;
public:
void addOrder(Vertex*, Vertex*, bool);
std::vector<orderElement>::iterator begin();
std::vector<orderElement>::iterator end();
void addSuperbubble(Vertex*, Vertex*);
void sort();
void startClock();
void endClock();
void setVertices(long unsigned int);
void setEdges(long unsigned int);
void setMultiedges(long unsigned int);
void writeComplete();
void writeOrder();
void writeStats(std::vector<Vertex>&);
void writeTree();
void parseParameter(int, char*[]);
void printdebug(std::string);
std::string getPath();
};
#endif