-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOptions.hpp
69 lines (42 loc) · 1.17 KB
/
Options.hpp
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
67
68
69
//Options class
//Author: Birkee
//22/2/2018
#ifndef OPTIONS_H
#define OPTIONS_H
#include <iostream>
#include <vector>
#include <string>
#include <unordered_map>
#include <sstream>
#include <algorithm>
#include <queue>
//#include "Command.cpp"
//#include "DelFile.cpp"
#include "FileOperations.cpp"
#include "ExtractFile.cpp"
class Options
{
public:
explicit Options(std::string prog);
explicit Options(std::string prog, std::vector<std::string> opts, std::vector<std::string> desc);
explicit Options(std::string prog, std::vector<std::string> opts, std::vector<std::string> desc,
std::vector<bool> exts);
const std::string version = "1.0";
std::vector<std::string> options;
std::string program;
std::vector<std::string> descriptions;
std::vector<bool> extensions;
//std::queue<Command> commmands;
Options& addOption(std::string option, std::string desc, bool extendable);
std::string str(size_t indent) const;
};
class Parse
{
public:
explicit Parse(Options &opts);
Parse& parse(std::vector<std::string> inArgv, int inArgc);
//Parse& execute();
private:
Options opts;
};
#endif