blob: df5d28fb5548f5569cfcf4559b4acb3b390f96e4 (
plain) (
blame)
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
|
#ifndef MOOD_H_B9A39F40
#define MOOD_H_B9A39F40
#include <string>
namespace cadence {
namespace generator {
class mood {
public:
enum class type {
danceable,
acoustic,
aggressive,
electronic,
happy,
party,
relaxed,
sad,
instrumental
};
// Constructor
mood(type t, double prob);
// Accessors
type getType() const
{
return type_;
}
double getProbability() const
{
return probability_;
}
bool getPositive() const
{
return positive_;
}
std::string getCategory() const
{
return category_;
}
private:
type type_;
double probability_;
bool positive_;
std::string category_;
};
};
};
#endif /* end of include guard: MOOD_H_B9A39F40 */
|