about summary refs log tree commit diff stats
path: root/generator/mood.h
diff options
context:
space:
mode:
Diffstat (limited to 'generator/mood.h')
-rw-r--r--generator/mood.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/generator/mood.h b/generator/mood.h new file mode 100644 index 0000000..df5d28f --- /dev/null +++ b/generator/mood.h
@@ -0,0 +1,60 @@
1#ifndef MOOD_H_B9A39F40
2#define MOOD_H_B9A39F40
3
4#include <string>
5
6namespace cadence {
7 namespace generator {
8
9 class mood {
10 public:
11 enum class type {
12 danceable,
13 acoustic,
14 aggressive,
15 electronic,
16 happy,
17 party,
18 relaxed,
19 sad,
20 instrumental
21 };
22
23 // Constructor
24
25 mood(type t, double prob);
26
27 // Accessors
28
29 type getType() const
30 {
31 return type_;
32 }
33
34 double getProbability() const
35 {
36 return probability_;
37 }
38
39 bool getPositive() const
40 {
41 return positive_;
42 }
43
44 std::string getCategory() const
45 {
46 return category_;
47 }
48
49 private:
50 type type_;
51 double probability_;
52 bool positive_;
53 std::string category_;
54
55 };
56
57 };
58};
59
60#endif /* end of include guard: MOOD_H_B9A39F40 */