forked from Hexagenic/wanikaniwallpaper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.hpp
43 lines (38 loc) · 1.11 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
#pragma once
#include <string>
#include <boost/optional.hpp>
#include "color.hpp"
namespace wanikani
{
class Options
{
public:
Options(int argc, char **argv);
const boost::optional<std::string> apikey() const;
const int width() const;
const int height() const;
const std::string outFileName() const;
const std::string fontFileName() const;
const int marginLeft() const;
const int marginRight() const;
const int marginTop() const;
const int marginBottom() const;
const Color colorBackground() const;
const Color colorUnseen() const;
const Color colorApprentice() const;
const Color colorGuru() const;
const Color colorMaster() const;
const Color colorEnlightened() const;
const Color colorBurned() const;
const Color colorError() const;
const bool helpRequested() const;
private:
boost::optional<std::string> apikey_;
int width_, height_;
int marginLeft_, marginRight_, marginTop_, marginBottom_;
Color colorBackground_, colorUnseen_, colorApprentice_, colorGuru_, colorMaster_, colorEnlightened_, colorBurned_, colorError_;
std::string outFileName_;
std::string fontFileName_;
bool helpRequested_;
};
}